以文本方式查看主题 - 中文XML论坛 - 专业的XML技术讨论区 (http://bbs.xml.org.cn/index.asp) -- 『 DTD/XML Schema 』 (http://bbs.xml.org.cn/list.asp?boardid=23) ---- 文本与元素混合时该如何写schema? (http://bbs.xml.org.cn/dispbbs.asp?boardid=23&rootid=&id=29977) |
-- 作者:highthand -- 发布时间:4/5/2006 10:55:00 AM -- 文本与元素混合时该如何写schema? 请教下面的xml文档如何写schema <?xml version="1.0"?> <rootelement> Now,it's<month>April 2000 A.D.</month> But will the human race survive till <year>2127 A.D. <month>April?</month> </year> Or will the entire population be wiped out by World War 3? </rootelement> 如果可以的话也给出DTD,以便小弟对比学习.万分感谢!!! |
-- 作者:gemingke -- 发布时间:4/5/2006 11:45:00 AM -- 在schema里面,这样写 <xs:element name="rootelement" > <xs:complexType mixed="true"> .............. .............. .............. </xs:complexType> </xs:element> |
-- 作者:highthand -- 发布时间:4/5/2006 12:22:00 PM -- mixed="true"是什么意思 |
-- 作者:gemingke -- 发布时间:4/5/2006 5:10:00 PM -- 这就表示该类型为混合类型,可以是文字夹杂元素 |
-- 作者:sajia -- 发布时间:4/5/2006 7:34:00 PM -- 我也来试试~~ |
W 3 C h i n a ( since 2003 ) 旗 下 站 点 苏ICP备05006046号《全国人大常委会关于维护互联网安全的决定》《计算机信息网络国际联网安全保护管理办法》 |
46.875ms |