posted 17 years ago
When I try to validate my xml document with schema, it checks if the input xml has the elements in the order/sequence they are defined in the schema.
But problem is, my xml document can contain these elements in any sequence.
Example if elements x, y,z are defined in the schema in the sequence below.
<x>
<y/>
<z/>
</x>
then my xml document may not necessarily get the elements in the same sequence.
All I want to check is if my xml has those elements in them. I am not much considered about the sequence.
Is there is any setting while validating xml document which ignores the sequence?
I am using JDOM.
Your input is very much appreciated.
Thank you.