Per Bernhardsson wrote:
I'm trying to parse and validate an XML stream using an in memory copy of a
schema. As I can't trust the source of the XML stream I need to force
validation to the correct schema. It's not acceptable solution to create a
file containing the schema. Is it all possible?


Register an entity resolver handler to intercept the "load schema" request, and provide a MemBufInputSource with your buffer. See the Redirect sample for an example on how to do it.

Alberto

Reply via email to