<div class="gmail_quote">
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div>We have necessity to write, in the final XML, the string &test and not the string &test</div>
<div>How can we do ?<br><br></div>
<div class="gmail_quote">2011/12/16 Grzegorz <span dir="ltr"><<a href="mailto:grzegorz.kaczor@gmail.com" target="_blank">grzegorz.kaczor@gmail.com</a>></span><br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">
<div class="gmail_quote">
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote">according to Jdom FAQ ( <a href="http://www.jdom.org/docs/faq.html#a0290" target="_blank">http://www.jdom.org/docs/faq.html#a0290</a> ) , I tried to write the string<br>
<br>&test<br> <br>using this statement:<br> <br>root.setText("\u0026test");<br> <br>where \u0026 is the Unicode code for ampersand character.<br> <br>The output is:<br> <br>&test<br> <br>Where is the error ? <br>
</blockquote>
<div><br></div>
<div>There is no error. What is wrong? It is a special character in XML and as such it must be escaped.</div>
<div><br></div>
<div>Regards,</div><span><font color="#888888">
<div>Grzegorz</div></font></span></div></blockquote></div><br></blockquote></div><br>