How can i remove the strings found after closing of node </note>
following is the xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<note> <to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>
<!-- ID3x v4.60 (387) - X29 - 00.011.623 - base - 14/03/2012 10:44:35 - getalerts.xml -->
I want to remove the string’ <!-- ID3x v4.60 (387) - X29 - 00.011.623 - base - 14/03/2012 10:44:35 - getalerts.xml -->'
Use Java String’s replaceAll: