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

    >> DTD, XML Schema(XMLS), RELAX NG
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - XML技术『 DTD/XML Schema 』 → 请帮忙写一个XSD文件,谢谢! 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2108 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: 请帮忙写一个XSD文件,谢谢! 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     mycwcgr 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:4
      积分:61
      门派:XML.ORG.CN
      注册:2005/9/25

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给mycwcgr发送一个短消息 把mycwcgr加入好友 查看mycwcgr的个人资料 搜索mycwcgr在『 DTD/XML Schema 』的所有贴子 引用回复这个贴子 回复这个贴子 查看mycwcgr的博客楼主
    发贴心情 请帮忙写一个XSD文件,谢谢!

    I'm a beginner. How to define a XSD validation from a folder structure XML (just like disk directory hiberarchy structure)?

    1. I have a XML file just like disk directory hiberarchy structure, every Folder node have zero, one and more Bookmark or Folder nodes, I don't know how to write a XSD validation for the XML, could you help me?

    2. The attributes both Id and BId are the string of the Uniqueidentifier field in SQL 2005, how to validate it in the XSD?

    3. Furthermore, is there tool which can made a basica XSD from a XML?  Many Thanks!

    //----------------------------------------------------------

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

    <Folder Name="Root" Id="a6dce8fe-749c-4e38-ab2f-3d03d9711b3d">

      <Bookmark BId="f8dce8hj-846c-4e38-ab2f-6d03d9711b80">
        <Title>CodeGuru Forums - ASP.NET</Title>
        <Url>http://www.codeguru.com/</Url>
        <Description>This is a good site</Description>
        <InputDate> 2005-12-23</InputDate>
        <IsPrivate>False</IsPrivate>
      </Bookmark>

      <Bookmark BId="fgdce3ak-846c-4e38-ab2f-8i03d9711b23">
        <Title>We'll e-mail your press release</Title>
        <Url>http://www.dpdirectory.com/</Url>
        <Description>This is a good site</Description>
        <InputDate> 2004-11-23</InputDate>
        <IsPrivate>False</IsPrivate>
      </Bookmark>
      

      <Folder Name="Card1" Id="b8dcf8fe-749c-4e38-ab2f-6d03d9711b8j">

        <Bookmark BId="ghdce3ak-456c-4e38-ab2f-5h02d9711b67">
          <Title>Welcome to ePassporte</Title>
          <Url>https://www.epassporte.com/</Url>
          <Description>Very Good</Description>
          <InputDate> 2004-08-12</InputDate>
          <IsPrivate>True</IsPrivate>
        </Bookmark>

        <Bookmark BId="fkdfh3a8-456c-6y38-jk2f-5h0gh9711b45">
          <Title>Keystone DreamCard</Title>
          <Url>https://www.mydreamcardonline.com</Url>
          <Description>Please note</Description>
          <InputDate> 2004-09-25</InputDate>
          <IsPrivate>True</IsPrivate>
        </Bookmark>    

        <Folder Name="Card1in1" Id="l9dcf8fe-689c-0935-fghj-7u03d9711b5t">    
           <Bookmark BId="ghdfh3a8-896c-6y40-jkfg-5h0gh9711b89">      
             <Title>The News of CNN</Title>
             <Url>https://www.cnn.com</Url>
             <Description>Please note</Description>
             <InputDate> 2004-09-23</InputDate>
             <IsPrivate>True</IsPrivate>
           </Bookmark>
        </Folder>

      </Folder>


      <Folder Name="Card2" Id="67dcf8fe-734c-4e56-ab2f-6d03d9711bfg">
      
      </Folder>


    </Folder>

    //-------------------------------------------------------------------


       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2005/10/1 13:18:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 DTD/XML Schema 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2024/5/7 6:58:09

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

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