Hi Christian

----- Original Message -----
From: "Christian Holmqvist, IT, Posten" <[EMAIL PROTECTED]>
> Hi
>
> Is there any buildup validation features in Dom4J?
>
> What I mean is that when the Document is created a DTD/Schema is assigned
to
> the Document and as the element, attribute .. is added to the document the
> document is validating it's correctness.
>

Firstly validating a document as its being created / changed often doesn't
work. e.g. an empty document will be invalid.

Though once you have a Document instance you can validate it against a DTD /
schema whenever you wish.

There's a cool library called MSV from Sun which does this very nicely and
it works against DTDs, RelaxNG (the nicest schema language IMHO) as well as
XML Schema, TREX and Relax.

There's an example of it in use in dom4j/src/samples/JARVDemo.java.

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