1XML::Handler::BuildDOM(U3s)er Contributed Perl DocumentatXiMoLn::Handler::BuildDOM(3)
2
3
4

NAME

6       XML::Handler::BuildDOM - PerlSAX handler that creates XML::DOM document
7       structures
8

SYNOPSIS

10        use XML::Handler::BuildDOM;
11        use XML::Parser::PerlSAX;
12
13        my $handler = new XML::Handler::BuildDOM (KeepCDATA => 1);
14        my $parser = new XML::Parser::PerlSAX (Handler => $handler);
15
16        my $doc = $parser->parsefile ("file.xml");
17

DESCRIPTION

19       XML::Handler::BuildDOM creates XML::DOM document structures (i.e.
20       XML::DOM::Document) from PerlSAX events.
21
22       This class used to be called XML::PerlSAX::DOM prior to libxml-enno
23       1.0.1.
24
25   CONSTRUCTOR OPTIONS
26       The XML::Handler::BuildDOM constructor supports the following options:
27
28       ·   KeepCDATA => 1
29
30           If set to 0 (default), CDATASections will be converted to regular
31           text.
32
33       ·   Document => $doc
34
35           If undefined, start_document will extract it from Element or
36           DocType (if set), otherwise it will create a new
37           XML::DOM::Document.
38
39       ·   Element => $elem
40
41           If undefined, it is set to Document. This will be the insertion
42           point (or parent) for the nodes defined by the following callbacks.
43
44       ·   DocType => $doctype
45
46           If undefined, start_document will extract it from Document (if
47           possible).  Otherwise it adds a new XML::DOM::DocumentType to the
48           Document.
49
50
51
52perl v5.32.0                      2020-07-28         XML::Handler::BuildDOM(3)
Impressum