Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xml schema validation with xerces 2

 
Ray Lim
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello...
I'm trying to get Xerces to validate an xml against a schema.
I'm following an example I found on the web.
http://www-106.ibm.com/developerworks/xml/library/x-tipsch.html
The parser seems to check if the xml is well-formed but not check if the xml follows the related schema.
When I modify the XML shouldn't I get an exception saying it no longer follows the schema?
Here is the java code.


Thanks,
Ray
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please read this tutorial http://www-106.ibm.com/developerworks/edu/x-dw-xxschema-i.html for schema validation
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic