Two Laptop Bag*
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
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