Thursday, 21 August 2014



I have string like this:



<?xml>
<some>
<tag>
</tag>
</some>
<data>
Here replace ' with ''
</data>
</xml>


where I need to take only the contents within <?xml></xml> that is:



<some>
<tag>
</tag>
</some>
<data>
Here replace ' with ''
</data>


I tried the regex: <?xml>.</xml> but that doesnt work.


Any help?


No comments:

Post a Comment