Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果xml中存在属性但xsd中没有属性会发生什么如果上述可能,请举一些例子
如果某个属性存在于 xml 中但不存在于 xsd
验证肯定会失败!
但是可以使用通配符声明未知属性<xs:anyAttribute/>
<xs:anyAttribute/>
参考:http: //msdn.microsoft.com/en-us/library/ms256443.aspx