孟子E章,问题还是没有解决

lyflll 2003-05-11 06:06:47
我照你的方法做了可是问题还是没有解决
...全文
21 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lyflll 2003-05-12
  • 打赏
  • 举报
回复
好如下: 这是一个文件名为Book.xml的XML 模式
<?xml version="1.0" ?>
- <Schema name="BookDef" xmlns="urn:schemas-microsoft-com:xml-data" xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="Title" content="textOnly" />
<ElementType name="Name" content="textOnly" />
<ElementType name="Country" content="textOnly" />
<ElementType name="PublicationDate" dt:type="date" />
<ElementType name="Directory" content="textOnly" />
<ElementType name="Chapter" content="textOnly" />
<ElementType name="Public" content="textOnly" />
- <ElementType name="Author" content="eltOnly" order="seq">
<element type="Name" />
<element type="Country" />
</ElementType>
- <ElementType name="Book" content="eltOnly" order="seq">
<element type="Title" />
<element type="Author" />
<element type="Public" />
<element type="PublicationDate" />
<element type="Dirctory" />
<element type="Chapter" />
</ElementType>
</Schema>

这是一个测试Book.xml的简单的XML 文件:文件名为Text.xml

<?xml version="1.0" encoding="gb2312" ?>
- <Catalog xmlns:mm="x-schama:Book.xml">
- <mm:Book>
<mm:Title>路小凤</mm:Title>
- <mm:Author>
<mm:Name>古龙</mm:Name>
<mm:Country>中国</mm:Country>
</mm:Author>
<mm:Public>中国人民出版社</mm:Public>
<mm:Pubication>1998.4</mm:Pubication>
<mm:Dirctory>陆小凤</mm:Dirctory>
<mm:Chapter>陆小凤 山西雁道“祖师爷一生效力武学。到晚年才有家室之 陆小风道/天禽老人</mm:Chapter>
</mm:Book>- <mm:Book>
<mm:Title>路小凤</mm:Title>
- <mm:Author>
<mm:Name>古龙</mm:Name>
<mm:Country>中国</mm:Country>
</mm:Author>
<mm:Public>中国人民出版社</mm:Public>
<mm:Pubication>1998.4</mm:Pubication>
<mm:Dirctory />
<mm:Chapter />
</mm:Book>
</Catalog>
孟子E章 2003-05-11
  • 打赏
  • 举报
回复
把你的xml文件拿来
lyflll 2003-05-11
  • 打赏
  • 举报
回复
关于firstChild问题
孟子E章 2003-05-11
  • 打赏
  • 举报
回复
哪个?

8,906

社区成员

发帖
与我相关
我的任务
社区描述
XML/XSL相关问题讨论专区
社区管理员
  • XML/XSL社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧