Forcing schema validation

I

i.am.thor

Does anyone know of a way to force validation of an XML file if the
schemaLocation attribute is not set in the document? For example, I'm
trying to use the loadGrammar() function of the xerces parser to force
it to validate foo.xml against foo.xsd, even though foo.xml does not
contain the schemaLocation attribute. The function returns OK, but
subsequent calls to parse() do not actually validate against the
grammar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top