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

No members online now.

Forum statistics

Threads
474,262
Messages
2,571,059
Members
48,769
Latest member
Clifft

Latest Threads

Top