This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes xml schema validation with xerces 2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml schema validation with xerces 2" Watch "xml schema validation with xerces 2" New topic
Author

xml schema validation with xerces 2

Ray Lim
Greenhorn

Joined: Jan 10, 2002
Posts: 15
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

Joined: Jul 13, 2001
Posts: 3150
please read this tutorial http://www-106.ibm.com/developerworks/edu/x-dw-xxschema-i.html for schema validation


Spritle Software Blogs
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml schema validation with xerces 2
 
Similar Threads
business scenarios well explained
help regarding xml project
How to make setFeature work?
Convert Word to XML
Mock exam questions