[jdom-interest] In-memory validation

Tatu Saloranta cowtowncoder at yahoo.com
Tue May 16 08:30:16 PDT 2006

--- S�ren Faltz <soren.faltz at gmail.com> wrote:

> Is this possible with JDOM? It stated somewhere that
> it would be available
> in  version 1.0

If you only need to validate according to a DTD or
RelaxNG schema, you could also hook JDom with Woodstox
stax processor (using JDom StaxSerializer I
contributed a while ago). Woodstox has optional
output-side validation available with latest dev.
builds (2.9.3). If you give it a dummy/null Writer
(that won't really output anything), that'll be close
enough to in-memory validator (ie. modest overhead).
DTD validation is in-built, RNG validation is done my
using MSV. Right now W3c schema validation has not yet
been implemented, but is planned, also using MSV.

Not really an optimal solution, but one possibility
(and free, if that matters).

-+ Tatu +-

Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 

More information about the jdom-interest mailing list