[jdom-interest] JDOM in memory schema validation

Laurent Bihanic laurent.bihanic at atosorigin.com
Mon May 5 00:57:03 PDT 2003


Hi,

Alessandro Kohler wrote:
> I validate incoming xml data against a schema of my choice by setting features
> and properties in the parser (I use xerces with a custom content handler to
> generate jdom documents representing sections of the incoming xml) and I believe
> one can set the same features and properties also when using jdom's builder.
> 
> does what you say mean that if the xml I receive declares a schema within the
> document, the parser would rather validate against that schema than using mine?

The schema spec. requires the parser to validate against the schema(s) you 
specified through the API. It shall use the schema declared in the document 
only if no schema is specified through the API or if none of the target 
namespaces of those schemas matches the one of the document.

Laurent




More information about the jdom-interest mailing list