| 1 |
NAME |
| 2 |
XML::LibXML::Debugging - get debugging information from XML::LibXML nodes |
| 3 |
|
| 4 |
SYNOPSIS |
| 5 |
use XML::LibXML::Debugging; |
| 6 |
|
| 7 |
my $parser = XML::LibXML->new; |
| 8 |
my $doc = $parser->parse_file('input.xml'); |
| 9 |
print $doc->toClarkML; |
| 10 |
|
| 11 |
DESCRIPTION |
| 12 |
This module adds a couple of additional methods to XML::LibXML::Node |
| 13 |
objects which are mostly aimed at helping figure out what's going on with |
| 14 |
the DOM's namespaces and structure. `toClarkML` produces a string of |
| 15 |
XML-like markup with explicit namespaces. The following XML: |
| 16 |
|
| 17 |
<foo xmlns="http://example.com/1" |
| 18 |
xmlns:bar="http://example.com/2" |
| 19 |
bar:baz="quux" /> |
| 20 |
|
| 21 |
Might be represented as: |
| 22 |
|
| 23 |
<{http://example.com/1}foo |
| 24 |
{http://www.w3.org/2000/xmlns/}xmlns="http://example.com/1" |
| 25 |
{http://www.w3.org/2000/xmlns/}bar="http://example.com/2" |
| 26 |
{http://example.com/2}baz="quux" /> |
| 27 |
|
| 28 |
Another method `toDebuggingHash` returns a hashref suitable for dumping |
| 29 |
using Data::Dumper. |
| 30 |
|
| 31 |
BUGS |
| 32 |
Please report any bugs to <http://rt.cpan.org/>. |
| 33 |
|
| 34 |
SEE ALSO |
| 35 |
XML::LibXML, XML::LibXML::Debugging. |
| 36 |
|
| 37 |
AUTHOR |
| 38 |
Toby Inkster <[email protected]>. |
| 39 |
|
| 40 |
COPYRIGHT AND LICENSE |
| 41 |
Copyright (C) 2009-2011 by Toby Inkster |
| 42 |
|
| 43 |
This library is free software; you can redistribute it and/or modify it |
| 44 |
under the same terms as Perl itself. |
| 45 |
|
| 46 |
DISCLAIMER OF WARRANTIES |
| 47 |
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED |
| 48 |
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF |
| 49 |
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
| 50 |
|