【发布时间】:2011-09-29 09:59:26
【问题描述】:
我想验证一个 XML 文件,该文件具有相同节点中不能重复的值的模式。签名的顺序很重要。我的无效 XML 是:
<person>
<name>Peter Petrelli</name>
<subject1>Mathematics</subject1>
<note1>8.5</note1>
<subject2>Natural Science</subject2>
<note2>4.5</note2>
<subject3>Mathematics</subject3>
<note3>7</note3>
</person>
</school>
数学不可能不止一次。
如何使用 XSD 架构验证这一点?
非常感谢
【问题讨论】:
标签: xml xsd unique validation field