[jdom-interest] JDOM in memory schema validation

Jason Hunter jhunter at servlets.com
Tue Apr 1 16:14:14 PST 2003


> >The argument for this feature is that when you receive a document across
> >the network in a B2B environment, you'll naturally want to check the
> >document conforms to a particular schema.  Parsing with validation
> >turned on is NOT good enough because it only checks the doc against the
> >schema declared within the document.
> 
> Pardon a potentially dumb question, but why isn't it sufficient to
> simply check the System or Public ID?  Won't these values tell you what
> the doc was validated against and if they aren't on the approved list
> you can ditch the doc as invalid?

That can cause false negatives, rejecting perfectly valid documents.

-jh-



More information about the jdom-interest mailing list