以文本方式查看主题

-  中文XML论坛 - 专业的XML技术讨论区  (http://bbs.xml.org.cn/index.asp)
--  『 DTD/XML Schema 』  (http://bbs.xml.org.cn/list.asp?boardid=23)
----  [求助]dtd文档怎么写?  (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=7509)


--  作者:hooligan00011
--  发布时间:5/14/2004 12:57:00 PM

--  [求助]dtd文档怎么写?
DTD文档怎么写,请高手指点,谢谢
<TVGuide start="2001-07-05" end="2001-07-05">
 <Channel>
  <Name>BBC!</Name>
  <Program rating="5" flag="favorite">
   <Start>2001-07-05</Start>
   <Duration>PT30M</Duration>
   <Series>EastEnders</Series>
   <Title/>
   <Description>
Mark`s health scare forces him to reconsider his future with Lisa,
While jamie is tore between Sonia and Zoe
</Description>
   <CastList>
    <CastMember>
     <Character>
      <Name>Jamie 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>Emma Turner</Name>
   </Director>
  </Program>
 </Channel>
 <Channel>
  <Name>ITV</Name>
  <Program>
   <Start>2001-07-01T20:00:00</Start>
   <Duration>pt1h</Duration>
   <Series>Millionaire</Series>
   <Title/>
   <Program type="drama">
    <Start>2001-07-01 T21:00:00</Start>
    <Duration>PT@H</Duration>
    <Series/>
    <Title>Hot money</Title>>
</Program>
  </Program>
 </Channel>
</TVGuide>

--  作者:宇宙人
--  发布时间:5/17/2004 4:40:00 PM

--  
用xmlspy写,很方便的!
--  作者:Rogerthat
--  发布时间:5/18/2004 6:41:00 PM

--  
对啊
用xmlspy生成后你再自己修改一下
--  作者:hyandlsz
--  发布时间:5/28/2004 9:35:00 AM

--  
同意
--  作者:morewit
--  发布时间:6/2/2004 11:34:00 AM

--  
同意上面的意见!

Generate DTD/Schema...  

This command generates a new DTD or Schema from an XML document (or from a set of documents in the project window).

Use this function when you are defining a new schema or DTD, as it is often helpful to use an example XML document as a starting point.   

If you are targeting one of the modern schema kinds (e.g. XSD or BizTalk), XMLSPY 5 can automatically detect datatypes (such as date, time, number, URI, etc.) being used in your XML documents and create the corresponding restrictions in the schema.

XMLSPY 5 will also optionally detect typical enumeration scenarios, where an element or attribute can only contain items from a predefined list of values. You can also decide how to represent complex elements and how elements that only appear only once should be treated.

This command normally operates on the active main window, but you can also use the Generate DTD/Schema command on any file, folder, or group of files in the active project window.


W 3 C h i n a ( since 2003 ) 旗 下 站 点
苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》
61.523ms