When I am parsing an XML file, there are some <none> tags that the system automatically generates for various fields… BUT, There are no </none> tags .
So, my XML parser gives errors and is not parsing the ENTIRE file.
How do I get rid of this error?
$xml = simplexml_load_file($newfile3);
<none> is not a tag … So, I just want to ignore this or replace with something else like “none” …
basically replace the bad ‘tag’ with the two metacharacters encoded into entities.