> Now, I'd like sometimes to have the receiver of a document validate it using
> a schema known to him, rather than named in the document itself.
> 
> Is there a neater way of doing this than parsing the doc without validation,
> adding the schema reference, converting it back to XML and then reparsing it
> with validation on? For instance, is there a parser that will do its
> validation on a dom4j Document?

Sorry for a spam, but you may want to have a look at Sun Multi-Schema
XML Validator. (http://www.sun.com/xml)

It allows you to validate documents with your own schema, not with the
one named in the document.

It can validate SAX events, so you can convert dom4j objects into SAX
events to validate it.

regards,
----------------------
K.Kawaguchi
E-Mail: [EMAIL PROTECTED]


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to