1

how to validate xml using xsd without sequence and if any unknown or extra tag is present then that should be skipped(no validation error should be thrown). But for the tags which is present in xsd I should be able to check max,min occurrence and validate them with data type and length etc. any hint?

4

2 回答 2

0

如何使用具有不同命名空间的“任何”标签。

请参考此线程XSD 任何元素

http://www.w3schools.com/schema/schema_complex_any.asp

希望你觉得这个有用

于 2013-05-17T16:41:20.493 回答
0

而不是使用ANY不同的命名空间,我认为在我的情况下不会那么成功。解决方案看起来也是一种解决方法。我想使用 XSL 转换并准备我的 XSD 想要在其中解析文件的 xml。如果发送了任何不正确的文件,那么使用 xsl 转换创建的新 xml 也将无法通过验证。

于 2013-05-20T05:24:26.710 回答