Originally posted by Ali Gohar:
Can i validate the file using the Schema that i have, Not provided by the user. User will only provide the XML Document. Is it possible?
We have an example at
our wiki (although the page in question is currently not rendered correctly) where you can specify an "external schema document" to validate against using Xerces-specific
properties. There's also a very nice
article by Elliotte Rusty Harold at InformIT.com about the subject.
If (when) you're able to use JAXP
1.2, you can also use a
standard mechanism for telling the parser where to find the schema document.