aspose file tools*
The moose likes XML and Related Technologies and the fly likes Validating against a schema using the DocumentBuilderFactory 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 "Validating against a schema using the DocumentBuilderFactory" Watch "Validating against a schema using the DocumentBuilderFactory" New topic
Author

Validating against a schema using the DocumentBuilderFactory

jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
If I setValidating( true ), is there a way to have this validate against a schema instead of requiring a DTD defined in a DOCTYPE header? Or should we be using a DOMParser instead and set the features? I have a feeling the latter is the way to go.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Validating against a schema using the DocumentBuilderFactory
 
Similar Threads
How to validate XML against DTD / Schema using DOM
Validating XML against Schema
How to validate an XML schema i.e. Validate an XSD file
Validation - best approach
Schema: how to create element with default value