----- Original Message -----
From: "Kohsuke KAWAGUCHI" <[EMAIL PROTECTED]>
> > 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)

No need to appologies! MSV is really cool stuff, more people should be aware
of it. The sooner its part of JAX-pack the better I'd say.


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

Agreed and it works extremely nicely.

I'm wondering how much work it would be to write a dom4j Verifier which
navigates the dom4j model using the dom4j API and the MSV API as an
alternative to sending SAX events in. Being able to verify a fragment of a
document might be really handy too; say a dom4j Element, when validating
part of a SOAP message for example.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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

Reply via email to