[jdom-interest] Validation strategy

Thomas Scheffler thomas.scheffler at uni-jena.de
Wed May 10 02:33:27 PDT 2006

Am Mittwoch, 10. Mai 2006 11:15 schrieb Søren Faltz:
> I receive messages in the form of an XML document. I am able to receive up
> to 44 different messages, and i therefor also have 44 different xml
> schemas.
> When i receive a message, how do I know which schema to use to validate
> against??

Let not the server choose -- but the client tell -- what kind of message this 
is before parsing.

just embed something like this in the root element:


On server side use an custom EntityResolver or what its called to retrieve the 

This is the way I would implement this. I don't know if you have controll over 
the client code though.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 483 bytes
Desc: not available
Url : http://www.jdom.org/pipermail/jdom-interest/attachments/20060510/9d0571c3/attachment.bin

More information about the jdom-interest mailing list