[jdom-interest] JDOM in memory schema validation
Jason Hunter
jhunter at servlets.com
Tue Apr 1 20:15:26 PST 2003
> Understand that, but if you have a schema and your dealing with data,
> wouldn't it be better to use something like JAXB and let the validation be
> done by the unmarshalling process, then just use the objects, and skip
> dealing with elements, attributes, and strings all together.
JAXB isn't a general solution. What if you just want to store the XML
file for later use? Or want to put it into an NXD which isn't schema
aware? Or want to have a "receiver" component check the doc structure
and if it passes turn it over to a separate "handler" component that
does whatever to read the data, possibly using JAXB but not
necessarily. Or what if you just don't like JAXB?
-jh-
More information about the jdom-interest
mailing list