V
vunet.us
How can I use replaceAll function to remove XML declaration line:
<?xml version="1.0" encoding="US-ASCII"?>
This did not work:
String newXML = myXML.replaceAll("<?xml version=\"1.0\"
encoding=\"US-ASCII\"?>","")
It has something to do with regular expressions.... I guess.
PS: Yes, I do need to remove that XML declaration.
<?xml version="1.0" encoding="US-ASCII"?>
This did not work:
String newXML = myXML.replaceAll("<?xml version=\"1.0\"
encoding=\"US-ASCII\"?>","")
It has something to do with regular expressions.... I guess.
PS: Yes, I do need to remove that XML declaration.