XML::LibXML::Debugging(3pm)

XML::LibXML::Debugging3pm

Get debugging information from xml::libxml nodes

Usage

  use XML::LibXML::Debugging;
  my $parser = XML::LibXML->new;
  my $doc    = $parser->parse_file('input.xml');
  print $doc->toClarkML;

Overview

This module 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:

  <foo xmlns="http://example.com/1"
       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.

Disclaimer of warranties

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.

Releases

7 releases since Debian 7 (Wheezy); the text changed 4 times.

  1. 7–8
  2. 9–10
  3. 11
  4. 12
  5. 13

Bugs

Please report any bugs to <http://rt.cpan.org/>.

Author

Toby Inkster <[email protected]>.

From libxml-libxml-debugging-perl 0.103-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.