
Xml::libxml::debugging is a perl library which adds a couple of additional methods to xml::libxml::node objects which are mostly aimed at helping figure out what's going on with the dom's namespaces and structure. "toclarkml" produces a string of xml-like markup with explicit namespaces. the following xml:
xmlns:bar="http://example.com/2"
bar:baz="quux" />
might be represented as:
<{http://example.com/1}foo
{http://www.w3.org/2000/xmlns/}xmlns="http://example.com/1"
{http://www.w3.org/2000/xmlns/}bar="http://example.com/2"
{http://example.com/2}baz="quux" />
another method "todebugginghash" returns a hashref suitable for dumping using data::dumper.