[jdom-interest] Validation strategy

Michael Kay mike at saxonica.com
Wed May 10 03:45:43 PDT 2006


> just embed something like this in the root element:
> 
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xsi:noNamespaceSchemaLocation="schemaXY.xsd"
> 

This rather depends how much you trust the document sender. If they modify
the schema, they can insert a reference to their new version of the schema
(using an http: URI). Validation will succeed, but will prove nothing.

Michael Kay
http://www.saxonica.com/



More information about the jdom-interest mailing list