posted 15 years ago
All,
I have an XML file like the one shown below,
I was trying to define an XSD schema for the above XML, so that i will validate the XML data, also use the same for parsing the file using JAXB2.
In this regard, since the <In> and <Out> tag can appear in any order and any number of times, i couldn't exactly know how the complex type LogInOut should look.
Please see the XSD which i have created. Let me know the changes which i have to make to my XSD.
Not sure whether to use sequence or all or choice, certainly not choice.
Also i can't make the complextype as xs:sequence as there is no guarentee that <In> tag will be the first one.
Also if i make it xs:all in that case the maxOccurs must be 1, so i cant define more than one <In> or <Out> tags
Please help me in this regard.
Thanks
[ October 15, 2008: Message edited by: Raga Vendran ]
[ October 15, 2008: Message edited by: Raga Vendran ]