File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
REST with Spring (video course)
this week in the
XML and Related Technologies
Validating against a schema using the DocumentBuilderFactory
Chicken Farmer ()
Joined: May 08, 2001
Jul 24, 2003 15:37:00
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:
subject: Validating against a schema using the DocumentBuilderFactory
How to validate XML against DTD / Schema using DOM
Validation - best approach
Validating XML against Schema
How to validate an XML schema i.e. Validate an XSD file
Schema: how to create element with default value
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015