You are here: Documentation » API Reference » SimplePie » enable_xml_dump()
Table of Contents
enable_xml_dump()
Description
class SimplePie { enable_xml_dump ( [bool $enable = false] ) }
Outputs the raw XML content of the feed, after it has gone through SimplePie's filters.
Used only for debugging, this function will output the XML content as text/xml. When SimplePie reads in a feed, it does a bit of cleaning up before trying to parse it. Many parts of the feed are re-written in memory, and in the end, you have a parsable feed. XMLdump shows you the actual XML that SimplePie tries to parse, which may or may not be very different from the original feed.
Availability
- Available since SimplePie 1.0.
- Previously existed as enable_xmldump() since SimplePie Preview Release.
- Previously existed as a constructor parameter since SimplePie 0.91.
Parameters
enable
Enable/disable XMLdump mode.
Examples
Enable XMLdump
$feed = new SimplePie(); $feed->set_feed_url('http://simplepie.org/blog/feed/'); $feed->enable_xml_dump(true); $feed->init();
See Also
reference/simplepie/enable_xml_dump.txt · Last modified: 2011/03/06 03:56 (external edit)