1XML::LibXML::Debugging(U3s)er Contributed Perl DocumentatXiMoLn::LibXML::Debugging(3)
2
3
4

NAME

6       XML::LibXML::Debugging - get debugging information from XML::LibXML
7       nodes
8

SYNOPSIS

10         use XML::LibXML::Debugging;
11
12         my $parser = XML::LibXML->new;
13         my $doc    = $parser->parse_file('input.xml');
14         print $doc->toClarkML;
15

DESCRIPTION

17       This module adds a couple of additional methods to XML::LibXML::Node
18       objects which are mostly aimed at helping figure out what's going on
19       with the DOM's namespaces and structure. "toClarkML" produces a string
20       of XML-like markup with explicit namespaces. The following XML:
21
22         <foo xmlns="http://example.com/1"
23              xmlns:bar="http://example.com/2"
24              bar:baz="quux" />
25
26       Might be represented as:
27
28         <{http://example.com/1}foo
29              {http://www.w3.org/2000/xmlns/}xmlns="http://example.com/1"
30              {http://www.w3.org/2000/xmlns/}bar="http://example.com/2"
31              {http://example.com/2}baz="quux" />
32
33       Another method "toDebuggingHash" returns a hashref suitable for dumping
34       using Data::Dumper.
35

BUGS

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

SEE ALSO

40       XML::LibXML, XML::LibXML::Debugging.
41

AUTHOR

43       Toby Inkster <tobyink@cpan.org>.
44
46       Copyright (C) 2009-2011 by Toby Inkster
47
48       This library is free software; you can redistribute it and/or modify it
49       under the same terms as Perl itself.
50

DISCLAIMER OF WARRANTIES

52       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
53       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
54       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
55
56
57
58perl v5.32.0                      2020-07-28         XML::LibXML::Debugging(3)
Impressum