1XML::Grove::PerlSAX(3)User Contributed Perl DocumentationXML::Grove::PerlSAX(3)
2
3
4

NAME

6       XML::Grove::PerlSAX - an PerlSAX event interface for XML objects
7

SYNOPSIS

9        use XML::Grove::PerlSAX;
10
11        $parser = XML::Grove::PerlSAX->new( [OPTIONS] );
12        $result = $parser->parse( [OPTIONS] );
13
14        # or
15        $result = $xml_object->parse( [OPTIONS] );
16

DESCRIPTION

18       "XML::Grove::PerlSAX" is a PerlSAX parser that generates PerlSAX events
19       from XML::Grove objects.  This man page summarizes the specific
20       options, handlers, and properties supported by "XML::Grove::PerlSAX";
21       please refer to the PerlSAX standard in `"PerlSAX.pod"' for general
22       usage information.
23

METHODS

25       new Creates a new parser object.  Default options for parsing,
26           described below, are passed as key-value pairs or as a single hash.
27           Options may be changed directly in the parser object unless stated
28           otherwise.  Options passed to `"parse()"' override the default
29           options in the parser object for the duration of the parse.
30
31       parse
32           Parses a document.  Options, described below, are passed as key-
33           value pairs or as a single hash.  Options passed to `"parse()"'
34           override default options in the parser object.
35

OPTIONS

37       The following options are supported by "XML::Grove::PerlSAX":
38
39        Handler          default handler to receive events
40        DocumentHandler  handler to receive document events
41        Source           hash containing the input source for parsing
42
43       If no handlers are provided then all events will be silently ignored.
44
45       If a single grove argument is passed to the `"parse()"' method, it is
46       treated as if a `"Source"' option was given with a `"Grove"' parameter.
47
48       The `"Source"' hash may contain the following parameters:
49
50        Grove            The grove object used to generate parse events..
51

HANDLERS

53       The following events are generated by "XML::Grove::PerlSAX".
54       XML::Grove::PerlSAX passes the corresponding grove object as it's
55       parameter so the properties passed to the handler are those that were
56       used to create or were assigned to the grove.  Please see the docs for
57       the parser used to create the grove for a list of properties that were
58       provided.
59
60       DocumentHandler methods
61
62       start_document
63           Receive notification of the beginning of a document.  This is
64           called from the XML::Grove::Document object before processing any
65           document content.
66
67       end_document
68           Receive notification of the end of a document.  This is called from
69           the XML::Grove::Document object after processing all document con‐
70           tent.
71
72       start_element
73           Receive notification of the beginning of an element.  This is
74           called from the XML::Grove::Element object before processing any
75           element content.
76
77       end_element
78           Receive notification of the end of an element.  This is called from
79           the XML::Grove::Element object after processing all element con‐
80           tent.
81
82       characters
83           Receive notification of character data.  This is called from the
84           XML::Grove::Characters object.
85
86       processing_instruction
87           Receive notification of a processing instruction.  This is called
88           from the XML::Grove::PI object.
89
90       comment
91           Receive notification of a comment.  This is called from the
92           XML::Grove::Comment object.
93

AUTHOR

95       Ken MacLeod, ken@bitsko.slc.ut.us
96

SEE ALSO

98       perl(1), XML::Grove(3)
99
100       Extensible Markup Language (XML) <http://www.w3c.org/XML>
101
102
103
104perl v5.8.8                       1999-08-25            XML::Grove::PerlSAX(3)
Impressum