SimplePie 1.5 is now available!

SimplePie Documentation.  Learn how to use this thing.  It's way better than going to school.

You are here: Documentation » API Reference » SimplePie » enable_xml_dump()



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.


  • Available since SimplePie 1.0.
  • Previously existed as enable_xmldump() since SimplePie Preview Release.
  • Previously existed as a constructor parameter since SimplePie 0.91.



Enable/disable XMLdump mode.


Enable XMLdump

$feed = new SimplePie();

See Also

reference/simplepie/enable_xml_dump.txt · Last modified: 2011/03/06 03:56 (external edit)