aspose file tools*
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 Spring in Action this week in the Spring 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