This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes xml validation failure Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply Bookmark "xml validation failure" Watch "xml validation failure" New topic
Author

xml validation failure

Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
I have the following XSD:

<?xml version="1.0" encoding="UTF-8"?>



And the following xml


If I try to validate the xml with the above xsd, I get this error:



Could you please help?


Thanks and Regards
Satya Maheshwari
Ranch Hand

Joined: Jan 01, 2007
Posts: 368
Found the problem. I did not have any element in the xsd. I corrected it to:

<?xml version="1.0" encoding="UTF-8"?>

 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: xml validation failure
 
Similar Threads
XSD problem
Question about xml schemas and the use of unqualified nested elements
Against what schemas validate themselves?
xsd unique identity constraint (parent and child)
jaxb binding rror confused