Some times I receive text outside the xml tags in XML like this:
Bad command error. XYZ. Some more text<?xml version="1.0" encoding="utf-8"?><xml></xml>
This returns error in php. Because I am using this function to read the xml:
simplexml_load_string($xml);
Is there a way that I can remove the text outside xml tags so that i do not get error in xml ?
Thanks in advance!
1 Answer