Korrignu wrote:
> In fact my problem is this one : http://jira.codehaus.org/browse/XSTR-334
No. That issue is about providing directly an URL as XML source to the
underlaying XML parser to allow such a parser to resolve external DTDs. This
is available since XStream 1.4.
> ...
>
> my symbols like é avec defined in my dtd like this :
> <!ENTITY eacute "é" ><!-- small e, acute accent -->
You are using XStream's default parser that has neither schema nor DTD
support. Use a different one like StAX or DOM then.
> if I put in my xml file é instead of é it works.
Because it's defined in the XML spec.
> Infortunately, I can't, this xml file is provided to me and I can't
> modify it.
>
> So is these a way to load the dtd before invoking xstream.readObject ?
Using an appropriate parser, yes ;-)
- Jörg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email