File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
specify root for xsd validation
Joined: Jun 07, 2010
Jun 07, 2010 09:05:46
I have a xsd file which allows multiple elements to be the root element of a correct xml, i.e.
<xs:schema> <xs:element name="a" type="xs:string" /> <xs:element name="b" type="xs:integer" /> </xs:schema>
Is it possible to validate an xml file against this schema but also tell the validator that the root of the xml file should be "a" but not "b" ?
so that an xml like:
<b> 123 </b>
would fail the validation but
<a> some string </a>
Don't get me started about those stupid
subject: specify root for xsd validation
Creating a JMS TextMessage From XML
Help me for xsd creation
how to validate soap with xsd
xml validation against xsd schema
Question about generating XSD
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015