Changing XML

HI All

I want to remove<none> which is a attribute of<ftpl name=>.

How should i handle this special character?

<?xml version="1.0" encoding="UTF-8"?>

<ftpl id="47" name="<none>XXXXXXXX xxx xxxxxxxx">

<abc-cab name="Systems" id="43434">

<abc-dr name="zzzzz" id="4545454">

<temp key="Type">null</param>

<temp key="Folder">/ZVZ/XXXXX - xyz</param>

<temp key="Author">XYZ,ABC</param>

<temp key="Comments">null</param>

<temp key="Mailed_By">XYZ,ABC</param>

<temp key="Subject">null</param>

<temp key="Key_Words">null</param>

<abc-page name="1" id="3524012">

<file text="/asas/asasa/asa/asas/Oxxxxxx2276744.txt" count="1"/>

</abc-page>

</abc-dr>

</abc-cab>

</ftpl>

Any help in removing this "< >" chars will be appreciated.

Thanks.

[1519 byte] By [JavaNewUsera] at [2007-11-27 1:48:41]
# 1
If you are asking that because the parser tells you it is not well-formed XML, the answer is that you have to escape the < and > characters in attribute text as &lt; and &gt; respectively.
DrClapa at 2007-7-12 1:13:02 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
If your question is to be understood as is, you can use the replaceFirst() or the replaceAll() method of the String class. For example:"<none>XXXXXXXX xxx xxxxxxxx".replaceAll("<none>", "");
prgguya at 2007-7-12 1:13:02 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...