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

    >> XML网站展示,XML源代码,XML编程示例。 本版仅接受原创、转贴、网站展示,具体的技术交流请前往各相关版块。
    [返回] 中文XML论坛 - 专业的XML技术讨论区XML.ORG.CN讨论区 - XML技术『 XML源码及示例(仅原创和转载) 』 → [求助]大家帮我看看这是为什么呀?谢谢了 查看新帖用户列表

      发表一个新主题  发表一个新投票  回复主题  (订阅本版) 您是本帖的第 2798 个阅读者浏览上一篇主题  刷新本主题   树形显示贴子 浏览下一篇主题
     * 贴子主题: [求助]大家帮我看看这是为什么呀?谢谢了 举报  打印  推荐  IE收藏夹 
       本主题类别:     
     初学者 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:14
      积分:77
      门派:XML.ORG.CN
      注册:2004/3/18

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给初学者发送一个短消息 把初学者加入好友 查看初学者的个人资料 搜索初学者在『 XML源码及示例(仅原创和转载) 』的所有贴子 引用回复这个贴子 回复这个贴子 查看初学者的博客楼主
    发贴心情 [求助]大家帮我看看这是为什么呀?谢谢了

    一个是DTD文件,一个是XML文件,为什么XML SPY老是说根元素和DTD文件不匹配。
    test.dtd:
    -------------------------------------------------
    <?xml version="1.0" encoding="iso-8859-1"?>
    <!ELEMENT TVGuide (Channel+)>
    <!ATTLIST TVGuide
    start CDATA #REQUIRED
    end CDATA #REQUIRED
    >
    <!ELEMENT Channel (Name,Program+)>
    <!ELEMENT Name (#PCDATA)>
    <!ELEMENT Program (Start,Duration,Series,Title,Description*,CastList*,Writers*,Director*,Producer*)>
    <!ATTLIST Program
    ration CDATA #IMPLIED
    flag CDATA #IMPLIED
    type CDATA #IMPLIED
    >
    <!ELEMENT Start (#PCDATA)>
    <!ELEMENT Duration (#PCDATA)>
    <!ELEMENT Series (#PCDATA)>
    <!ELEMENT Title (#PCDATA)>
    <!ELEMENT Description (#PCDATA)>
    <!ELEMENT CastList (CastMember+)>
    <!ELEMENT Writers (Writer+)>
    <!ELEMENT Director (Name)>
    <!ELEMENT Producer (Name)>
    <!ELEMENT CastMember (Character,Actor)>
    <!ELEMENT Writer (Name)>
    <!ELEMENT Character (Name)>
    <!ELEMENT Actor (Name)>
    -----------------------------------------------------
    test.xml:
    ----------------------------------------------------
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE TVGruide SYSTEM "test.dtd">
    <TVGuide start="2001-07-05" end="2001-07-05">
    <Channel>
      <Name>BBC1</Name>
      <Program rating="5" flag="favorite">
       <Start>2001-07-05T19:30:00</Start>
       <Duration>PT30M</Duration>
       <Series>EastEnders</Series>
       <Title />
       <Description>
        Mark's health scare forces him to reconsider his future with Lisa,
        while Jamie is torn between Sonia and Zoe.
       </Description>
       <CastList>
        <CastMember>
         <Character>
          <Name>Jamis Mitchell</Name>
         </Character>
         <Actor>
          <Name>Jack Ryder</Name>
         </Actor>
        </CastMember>
        <CastMember>
         <Character>
          <Name>Sonia Jackson</Name>
         </Character>
         <Actor>
          <Name>Natalie Cassidy</Name>
         </Actor>
        </CastMember>
       </CastList>
       <Writers>
        <Writer>
         <Name>Julie Wassmer</Name>
        </Writer>
       </Writers>
       <Director>
        <Name>Stewart Edwards</Name>
       </Director>
       <Producer>
        <Name>Emma Turnet</Name>
       </Producer>
      </Program>
      <Program type="documentary">
       <Start>2001-07-05T20:00:00</Start>
       <Duration>PT45M</Duration>
       <Series />
       <Title>Get Real with Casualty</Title>
      </Program>
      <Program>
       <Start>2001-07-05T20:45:00</Start>
       <Duration>PT45M</Duration>
       <Series>Lottery</Series>
       <Title />
      </Program>
    </Channel>
    <Channel>
      <Name>ITV</Name>
      <Program>
       <Start>2001-07-05T20:00:00</Start>
       <Duration>PT1H</Duration>
       <Series>Millionaire</Series>
       <Title />
      </Program>
      <Program>
       <Start>2001-07-05T21:00:00</Start>
       <Duration>PT2H</Duration>
       <Series />
       <Title>Hot Money</Title>
      </Program>
    </Channel>
    </TVGuide>

       收藏   分享  
    顶(0)
      




    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/3/18 15:20:00
     
     gaoyang110 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:58
      门派:XML.ORG.CN
      注册:2004/8/16

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给gaoyang110发送一个短消息 把gaoyang110加入好友 查看gaoyang110的个人资料 搜索gaoyang110在『 XML源码及示例(仅原创和转载) 』的所有贴子 引用回复这个贴子 回复这个贴子 查看gaoyang110的博客2
    发贴心情 
    test.xml:
    -------------------------------------------------------------------------------
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE TVGuide SYSTEM "test.dtd">
    <TVGuide start="2001-07-05" end="2001-07-05">
    <Channel>
      <Name>BBC1</Name>
      <Program ration="5" flag="favorite">
       <Start>2001-07-05T19:30:00</Start>
       <Duration>PT30M</Duration>
       <Series>EastEnders</Series>
       <Title />
       <Description>
        Mark's health scare forces him to reconsider his future with Lisa,
        while Jamie is torn between Sonia and Zoe.
       </Description>
       <CastList>
        <CastMember>
         <Character>
          <Name>Jamis Mitchell</Name>
         </Character>
         <Actor>
          <Name>Jack Ryder</Name>
         </Actor>
        </CastMember>
        <CastMember>
         <Character>
          <Name>Sonia Jackson</Name>
         </Character>
         <Actor>
          <Name>Natalie Cassidy</Name>
         </Actor>
        </CastMember>
       </CastList>
       <Writers>
        <Writer>
         <Name>Julie Wassmer</Name>
        </Writer>
       </Writers>
       <Director>
        <Name>Stewart Edwards</Name>
       </Director>
       <Producer>
        <Name>Emma Turnet</Name>
       </Producer>
      </Program>
      <Program type="documentary">
       <Start>2001-07-05T20:00:00</Start>
       <Duration>PT45M</Duration>
       <Series />
       <Title>Get Real with Casualty</Title>
      </Program>
      <Program>
       <Start>2001-07-05T20:45:00</Start>
       <Duration>PT45M</Duration>
       <Series>Lottery</Series>
       <Title />
      </Program>
    </Channel>
    <Channel>
      <Name>ITV</Name>
      <Program>
       <Start>2001-07-05T20:00:00</Start>
       <Duration>PT1H</Duration>
       <Series>Millionaire</Series>
       <Title />
      </Program>
      <Program>
       <Start>2001-07-05T21:00:00</Start>
       <Duration>PT2H</Duration>
       <Series />
       <Title>Hot Money</Title>
      </Program>
    </Channel>
    </TVGuide>
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/16 11:36:00
     
     gaoyang110 帅哥哟,离线,有人找我吗?
      
      
      等级:大一新生
      文章:1
      积分:58
      门派:XML.ORG.CN
      注册:2004/8/16

    姓名:(无权查看)
    城市:(无权查看)
    院校:(无权查看)
    给gaoyang110发送一个短消息 把gaoyang110加入好友 查看gaoyang110的个人资料 搜索gaoyang110在『 XML源码及示例(仅原创和转载) 』的所有贴子 引用回复这个贴子 回复这个贴子 查看gaoyang110的博客3
    发贴心情 
    改成这样就可以了
    点击查看用户来源及管理<br>发贴IP:*.*.*.* 2004/8/16 11:37:00
     
     GoogleAdSense
      
      
      等级:大一新生
      文章:1
      积分:50
      门派:无门无派
      院校:未填写
      注册:2007-01-01
    给Google AdSense发送一个短消息 把Google AdSense加入好友 查看Google AdSense的个人资料 搜索Google AdSense在『 XML源码及示例(仅原创和转载) 』的所有贴子 访问Google AdSense的主页 引用回复这个贴子 回复这个贴子 查看Google AdSense的博客广告
    2025/1/3 3:16:56

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

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