[wp-hackers] DOMDocument in plugin

Todd Iceton todd at wpaudio.com
Tue Sep 22 01:46:53 UTC 2009


Hi all,

I'm trying to use DOMDocument to parse content in a plugin filter, and the
line:

$wpa_doc = new DOMDocument();

is totally disrupting WP.  Putting this one line in a plugin file all by
itself makes WP return a blank page, and putting it in a filter makes output
cut off right before the content.

Any ideas as to why this happens or how to use DOMDocument and avoid this
result?

Thanks very much for your help.

Todd


More information about the wp-hackers mailing list