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
27       The XML::Handler::BuildDOM constructor supports the following options:
28
29       * KeepCDATA => 1
30           If set to 0 (default), CDATASections will be converted to regular
31           text.
32
33       * Document => $doc
34           If undefined, start_document will extract it from Element or Doc‐
35           Type (if set), otherwise it will create a new XML::DOM::Document.
36
37       * Element => $elem
38           If undefined, it is set to Document. This will be the insertion
39           point (or parent) for the nodes defined by the following callbacks.
40
41       * DocType => $doctype
42           If undefined, start_document will extract it from Document (if pos‐
43           sible).  Otherwise it adds a new XML::DOM::DocumentType to the Doc‐
44           ument.
45
46
47
48perl v5.8.8                       2002-02-08         XML::Handler::BuildDOM(3)
Impressum