Question

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?

Était-ce utile?

La solution 2

Instead of using ANY with different namespace which I thought wont be that much successful in my case. Also solution look like a workaround. I thought of using XSL transformation and prepare the xml in which my XSD would like to parse the file. If any incorrect file is sent then new xml created using xsl transformation would also fail validation.

Autres conseils

How about using "Any" tag with different namespace .

Please refer to this thread XSD any element

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

Hope you find this useful

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top