This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes specify root for xsd validation Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "specify root for xsd validation" Watch "specify root for xsd validation" New topic
Author

specify root for xsd validation

Jan Nowakowski
Greenhorn

Joined: Jun 07, 2010
Posts: 1
Hi,
I have a xsd file which allows multiple elements to be the root element of a correct xml, i.e.



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" ?
Something like


so that an xml like:

would fail the validation but

would pass
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: specify root for xsd validation
 
Similar Threads
xml validation against xsd schema
Creating a JMS TextMessage From XML
Help me for xsd creation
how to validate soap with xsd
Question about generating XSD