Invalid XML Replace Content in PHP

Posted by streetparade on Stack Overflow See other posts from Stack Overflow or by streetparade
Published on 2010-04-22T14:26:08Z Indexed on 2010/04/22 14:33 UTC
Read the original article Hit count: 139

Filed under:
|
|

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

© Stack Overflow or respective owner

Related posts about php

Related posts about Xml