[jdom-interest] Validation strategy

Søren Faltz soren.faltz at gmail.com
Wed May 10 03:29:13 PDT 2006


I am the client, i receive messages from the server.

this is a sample of the message I would receive


  <?xml version="1.0" encoding="UTF-8" ?>
  - <#> <Envelope
xmlns:xsi="*http://www.w3.org/2001/XMLSchema-instance*"xsi:noNamespaceSchemaLocation
="*schema1.xsd*">
 - <#> <Header>
   <tDateTime>2006-01-17T08:42:17+08:00</DateTime>
<data>hello world</data>

</Header>- <#>
</Envelope>


So what is this entityresolver that you are talking about?? Could I use that
to determine the correct schema???

best regards
lars




2006/5/10, *Thomas Scheffler* thomas.scheffler at
uni-jena.de<jdom-interest%40jdom.org?Subject=%5Bjdom-interest%5D%20Validation%20strategy&In-Reply-To=98f283590605100215l611803b7l4358a27edc737834%40mail.gmail.com>
;
>
> 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:
>
>  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance%22>
> xsi:noNamespaceSchemaLocation="schemaXY.xsd"
>
> On server side use an custom EntityResolver or what its called to retrieve the
> schema.
>
> This is the way I would implement this. I don't know if you have controll over
> the client code though.
>
> regards
>
> Thomas
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20060510/a6153c89/attachment.htm


More information about the jdom-interest mailing list