Invalid XML Replace Content in PHP
- by streetparade
I have a invalid XML like this
Warning: count() [function.count]: Node no longer exists in /var/bla/test.php
<?xml version="1.0" encoding="ISO-8859-1"?>
<nodes>
<some>test</some>
</nodes>
Now i need a regex which would replace the Warning: count() [function.count]: Node no longer exists in /var/bla/test.php with ""
how can i do that?
The above xml is is not generated on my localmachine, its a api call which returned a invalid xml