xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Danner <jacob.dan...@gmail.com>
Subject Re: Invalid escaping of XML
Date Fri, 02 Oct 2009 20:54:53 GMT
Off the top of my head I think this is as expected. The > does not need to
be escaped only < .
-jacobd

On Fri, Oct 2, 2009 at 1:17 PM, Artem Portnoy
<artem.portnoy.ibi@gmail.com>wrote:

> Hello,
>
>
>
> We have an XmlBean that takes in a String. The problem is that if we pass
> in an XML String, the XML characters are not properly escaped.
>
>
>
> Here’s a simple program I use to test…
>
>
>
>   *public* *static* *void* main(String[] args) {
>
>     Trace trace = TestProcessFlowV2Res.Traces.Trace.Factory.*newInstance*
> ();
>
>     trace.setStringValue("<test>");
>
>     System.*out*.println(trace);
>
>   }
>
>
>
> The output produced looks as follows…
>
>
>
> <xml-fragment>&lt;test></xml-fragment>
>
>
>
> For some reason the ‘>’ character is not getting escaped. We are currently
> using XmlBeans 2.1.0. I’ve tried searching for similar bug reports on the
> mailing list archive and couldn’t find anything. If anybody could shed some
> light on this issue it would be greatly appreciated.
>
>
> Thanks,
>
>
> Artem Portnoy
>
> Information Builders, Inc
>

Mime
View raw message