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.
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.