<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">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>&amp;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><div>Grzegorz</div></div>