This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
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://aspose.com/file-tools
 
subject: xml validation failure