XML::Sablotron::SAXBuilder(3pm)

XML::Sablotron::SAXBuilder3pm

Builds a sablotron dom document from sax events

Usage

 use XML::Sablotron;
 use XML::Sablotron::DOM;
 use XML::Sablotron::SAXBuilder;
 use XML::Directory;
 $dir = new XML::Directory($path);
 $builder = new XML::Sablotron::SAXBuilder;
 $doc = $dir->parse_SAX($builder);

Overview

This is a SAX handler generating a Sablotron DOM tree from SAX events. Input should be accepted from any SAX1 or SAX2 event generator. This handler implements all methods required for basic Perl SAX 2.0 handler and some of the advanced methods (that make sense for Sablotron DOM tree).

In particular, the following methods are available:

start_document
end_document
start_element
end_element
characters
ignorable_whitespace
processing_instruction
start_cdata
end_cdata
comment

Namespaces are not supported by XML::Sablotron::DOM yet, therefore SAX2 events are accepted but NS information is ignored.

Licensing

Copyright (c) 2001 Ginger Alliance. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Releases

4 releases since Debian 3.0 (Woody); the text changed 3 times.

  1. 3.0
  2. 3.1
  3. 4.0
  4. 5.0

Author

Petr Cimprich, [email protected]

From libxml-sablot-perl 1.0-2+b1 in Debian 5.0 (Lenny). Parsed by carta from the page's man source.