I am using the following code to replace
String str = str.replaceAll("<?xml version = '1.0'?>","");
The str i get after running this has the <?xml version = '1.0'?> not replaced.
But if give some simple string like
str = str.replaceAll("xml",""); it works. Here the xml is replaced by blank.
Why is this happening? How do i get it working, is there any work around?
Thank you!