Because it parsed it:
this
&<"
parsed becomes
&<"
after parsing. And the parser WILL parse it because it is an attribute. So,
if you want to end up with
&amp;&lt;&quot;
use this
&amp;amp;&amp;lt;&amp;quot;
----- Original Message -----
From: "Hartmut Bernecker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 22, 2001 6:14 AM
Subject: digester.addSetProperties("elemA/elemB");
> Hello,
>
>
> I want to use the Digester Class of STRUTS. The orignial XML-Document
> (here a snippet) is:
> <elemA>
> <elemB attr="&amp;&lt;&quot;"/>
> </elemA>
>
>
> Now I call the folloging method:
> digester.addSetProperties("elemA/elemB");
>
>
> After parsing the result of the attr is:
> &<"
>
> Why????????????????? - I expect the following result:
> &amp;&lt;&quot;
>
>
> Please Help!
> Hartmut
>