新书推介:《语义网技术体系》
作者:瞿裕忠,胡伟,程龚
   XML论坛     W3CHINA.ORG讨论区     计算机科学论坛     SOAChina论坛     Blog     开放翻译计划     新浪微博  
 
  • 首页
  • 登录
  • 注册
  • 软件下载
  • 资料下载
  • 核心成员
  • 帮助
  •   Add to Google

    >> DTD, XML Schema(XMLS), RELAX NG
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - XML技术『 DTD/XML Schema 』 → 这个格式的xml文件怎么用schema定义??请过路的高手进来看看 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2890 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 这个格式的xml文件怎么用schema定义??请过路的高手进来看看 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     lililiy 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:0
      积分:52
      门派:XML.ORG.CN
      注册:2005/11/29

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给lililiy发送一个短消息 把lililiy加入好友 查看lililiy的个人资料 搜索lililiy在『 DTD/XML Schema 』的所有贴子 引用回复这个贴子 回复这个贴子 查看lililiy的博客楼主
    发贴心情 这个格式的xml文件怎么用schema定义??请过路的高手进来看看

    <?xml version="1.0" encoding="utf-8" ?>
    <root>

        <text x="450" y="40" >aaa</text>
        <table x="65" y="130">
            <tr height="25">
                 <td width="90" fontcolor="Black" b="true">bbb</td>
            </tr>
        </table>
    </root>


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/11/29 21:07:00
     
     98900969r 帅哥哟,离线,有人找我吗?
      
      
      威望:8
      等级:大四寒假(收到MIT的Offer啦)
      文章:235
      积分:1555
      门派:XML.ORG.CN
      注册:2005/11/2

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给98900969r发送一个短消息 把98900969r加入好友 查看98900969r的个人资料 搜索98900969r在『 DTD/XML Schema 』的所有贴子 引用回复这个贴子 回复这个贴子 查看98900969r的博客2
    发贴心情 
    这是xmlspy自动产生的:
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <!--W3C Schema generated by XMLSpy v2006 U (http://www.altova.com)-->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
     <xs:element name="root">
      <xs:complexType>
       <xs:sequence>
        <xs:element ref="text"/>
        <xs:element ref="table"/>
       </xs:sequence>
      </xs:complexType>
     </xs:element>
     <xs:element name="table">
      <xs:complexType>
       <xs:sequence>
        <xs:element ref="tr"/>
       </xs:sequence>
       <xs:attribute name="x" use="required">
        <xs:simpleType>
         <xs:restriction base="xs:byte">
          <xs:enumeration value="65"/>
         </xs:restriction>
        </xs:simpleType>
       </xs:attribute>
       <xs:attribute name="y" use="required">
        <xs:simpleType>
         <xs:restriction base="xs:string">
          <xs:enumeration value="130"/>
         </xs:restriction>
        </xs:simpleType>
       </xs:attribute>
      </xs:complexType>
     </xs:element>
     <xs:element name="td">
      <xs:complexType mixed="true">
       <xs:attribute name="width" use="required">
        <xs:simpleType>
         <xs:restriction base="xs:byte">
          <xs:enumeration value="90"/>
         </xs:restriction>
        </xs:simpleType>
       </xs:attribute>
       <xs:attribute name="fontcolor" use="required">
        <xs:simpleType>
         <xs:restriction base="xs:string">
          <xs:enumeration value="Black"/>
         </xs:restriction>
        </xs:simpleType>
       </xs:attribute>
       <xs:attribute name="b" use="required" type="xs:boolean"/>
      </xs:complexType>
     </xs:element>
     <xs:element name="text">
      <xs:complexType mixed="true">
       <xs:attribute name="x" use="required">
        <xs:simpleType>
         <xs:restriction base="xs:short">
          <xs:enumeration value="450"/>
         </xs:restriction>
        </xs:simpleType>
       </xs:attribute>
       <xs:attribute name="y" use="required">
        <xs:simpleType>
         <xs:restriction base="xs:byte">
          <xs:enumeration value="40"/>
         </xs:restriction>
        </xs:simpleType>
       </xs:attribute>
      </xs:complexType>
     </xs:element>
     <xs:element name="tr">
      <xs:complexType>
       <xs:sequence>
        <xs:element ref="td"/>
       </xs:sequence>
       <xs:attribute name="height" use="required">
        <xs:simpleType>
         <xs:restriction base="xs:byte">
          <xs:enumeration value="25"/>
         </xs:restriction>
        </xs:simpleType>
       </xs:attribute>
      </xs:complexType>
     </xs:element>
    </xs:schema>
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/11/30 10:09:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 DTD/XML Schema 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/22 17:50:58

    本主题贴数2,分页: [1]

    管理选项修改tag | 锁定 | 解锁 | 提升 | 删除 | 移动 | 固顶 | 总固顶 | 奖励 | 惩罚 | 发布公告
    W3C Contributing Supporter! W 3 C h i n a ( since 2003 ) 旗 下 站 点
    苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
    46.875ms