|
Packit |
d27c7e |
$Id: README,v 1.10 2003/10/21 16:01:54 kmacleod Exp $
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
libxml-perl
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
Collection of Perl modules for working with XML.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
INTRODUCTION
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
libxml-perl is a collection of smaller Perl modules, scripts, and
|
|
Packit |
d27c7e |
documents for working with XML in Perl. libxml-perl software
|
|
Packit |
d27c7e |
works in combination with XML::Parser, PerlSAX, XML::DOM,
|
|
Packit |
d27c7e |
XML::Grove and others.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
See the file Changes for user-visible changes and ChangeLog for
|
|
Packit |
d27c7e |
detailed changes. See the `examples' directory for examples. POD
|
|
Packit |
d27c7e |
style documentation is included in all non-alpha modules and
|
|
Packit |
d27c7e |
scripts. You should also be able to use the 'perldoc' utility to
|
|
Packit |
d27c7e |
extract documentation from the module files directly. HTML
|
|
Packit |
d27c7e |
formatted docs are available at the libxml-perl home page
|
|
Packit |
d27c7e |
<http://bitsko.slc.ut.us/libxml-perl/>.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
Newer versions of this module can be found on CPAN at
|
|
Packit |
d27c7e |
<http://www.perl.com/CPAN/modules/by-module/XML/>. To join the
|
|
Packit |
d27c7e |
Perl-XML mailing list, send an email message to
|
|
Packit |
d27c7e |
ListManager@ActiveState.com with the following text in the body:
|
|
Packit |
d27c7e |
Subscribe Perl-XML
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
View the Perl XML FAQ at
|
|
Packit |
d27c7e |
<http://www.perlxml.com/faq/perl-xml-faq.html>.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
Copyright (C) 1998 Ken MacLeod and others
|
|
Packit |
d27c7e |
This library is free software; you can redistribute it and/or
|
|
Packit |
d27c7e |
modify it under the same terms as Perl itself.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
MODULES
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
The following modules are marked with their release status:
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
STABLE -- has been in use for a while with few or no outstanding
|
|
Packit |
d27c7e |
bugs
|
|
Packit |
d27c7e |
BETA -- interfaces are stable but there may still be bugs
|
|
Packit |
d27c7e |
ALPHA -- interfaces are changing, there may be lots of bugs, and
|
|
Packit |
d27c7e |
there may not be docs available yet
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::Parser::PerlSAX STABLE
|
|
Packit |
d27c7e |
XML::Parser::PerlSAX is a PerlSAX parser using XML::Parser
|
|
Packit |
d27c7e |
(which uses James Clark's Expat XML Parser).
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::Handler::Sample STABLE
|
|
Packit |
d27c7e |
XML::Handler::Sample is a PerlSAX handler that simply prints
|
|
Packit |
d27c7e |
out the event names as they are parsed by a PerlSAX parser.
|
|
Packit |
d27c7e |
It can be used for debugging or as a template for building new
|
|
Packit |
d27c7e |
handlers. XML::Handler::Sample contains handlers for all
|
|
Packit |
d27c7e |
known parser events.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::ESISParser STABLE
|
|
Packit |
d27c7e |
XML::ESISParser is a validating PerlSAX parser using James
|
|
Packit |
d27c7e |
Clark's `nsgmls' SGML/XML Parser. ESISParser supports both
|
|
Packit |
d27c7e |
XML and SGML document instances. Unless you need validation,
|
|
Packit |
d27c7e |
you should probably be using XML::Parser::PerlSAX or
|
|
Packit |
d27c7e |
XML::Parser.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::ESISParser with XML::Grove obsolete the
|
|
Packit |
d27c7e |
SGML::SPGroveBuilder and SGML::Grove modules.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::Handler::XMLWriter STABLE
|
|
Packit |
d27c7e |
A PerlSAX handler for writing readable XML (in contrast to
|
|
Packit |
d27c7e |
Canonical XML, for example). XMLWriter is also subclassable
|
|
Packit |
d27c7e |
and supports calling start and end methods by element-names
|
|
Packit |
d27c7e |
(subclassed from XML::Handler::Subs). XMLWriter is similar to
|
|
Packit |
d27c7e |
XML::Parser's Stream style.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::Handler::Subs STABLE
|
|
Packit |
d27c7e |
A PerlSAX handler base class that calls start and end methods
|
|
Packit |
d27c7e |
by element-names. Subs is similar to XML::Parser's Subs
|
|
Packit |
d27c7e |
style.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::Handler::CanonXMLWriter STABLE
|
|
Packit |
d27c7e |
A PerlSAX handler that outputs in Canonical XML
|
|
Packit |
d27c7e |
<http://www.jclark.com/xml/canonxml.html>. This module is
|
|
Packit |
d27c7e |
generally only used for debugging.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
Data::Grove STABLE
|
|
Packit |
d27c7e |
Data::Grove::Parent STABLE
|
|
Packit |
d27c7e |
Data::Grove::Visitor STABLE
|
|
Packit |
d27c7e |
Data::Grove and it's helpers provide a base class for deeply
|
|
Packit |
d27c7e |
nested or directed graph structures. Used by XML::Grove (and
|
|
Packit |
d27c7e |
others soon).
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::SAX2Perl ALPHA
|
|
Packit |
d27c7e |
XML::Perl2SAX ALPHA
|
|
Packit |
d27c7e |
SAX2Perl and Perl2SAX are SAX Parser<->DocumentHandler
|
|
Packit |
d27c7e |
filters. These modules translate parse events between the
|
|
Packit |
d27c7e |
Java/CORBA style SAX methods and PerlSAX style methods.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::PatAct::MatchName ALPHA
|
|
Packit |
d27c7e |
MatchName is a pattern matching module that can be used with
|
|
Packit |
d27c7e |
PatAct action modules. MatchName uses simple element names or
|
|
Packit |
d27c7e |
element name lists to match names to actions.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::PatAct::ToObjects ALPHA
|
|
Packit |
d27c7e |
ToObjects is a PatAct action module. ToObjects can be used to
|
|
Packit |
d27c7e |
create application-ready Perl objects from XML instances.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::PatAct::Amsterdam ALPHA
|
|
Packit |
d27c7e |
Amsterdam is a PatAct action module. Amsterdam can be used to
|
|
Packit |
d27c7e |
apply a very simple form of style-sheet to an XML instance by
|
|
Packit |
d27c7e |
using ``before'' and ``after'' strings that are output before
|
|
Packit |
d27c7e |
and after the contents of elements.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
XML::PatAct::PatternTempl BETA
|
|
Packit |
d27c7e |
XML::PatAct::ActionTempl BETA
|
|
Packit |
d27c7e |
PatternTempl and ActionTempl are template files that
|
|
Packit |
d27c7e |
pattern/action module writers can copy to create new modules.
|
|
Packit |
d27c7e |
See Creating PatAct Modules for more information.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
DOCUMENTS
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
sax-2.0.html, sax-2.0-adv.html
|
|
Packit |
d27c7e |
PerlSAX 2.0 bindings. Maintained by Robin Berjon and the
|
|
Packit |
d27c7e |
XML-Perl mailing list.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
PerlSAX
|
|
Packit |
d27c7e |
This document defines a Perl binding to SAX 1.0. PerlSAX-
|
|
Packit |
d27c7e |
based parser modules implement and possibly extend the
|
|
Packit |
d27c7e |
interface described in PerlSAX.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
UsingPerlSAX
|
|
Packit |
d27c7e |
A brief introduction to PerlSAX using the XML::Parser::PerlSAX
|
|
Packit |
d27c7e |
module.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
UsingPatActModules
|
|
Packit |
d27c7e |
Describes how to use pattern/action modules to transform XML
|
|
Packit |
d27c7e |
instances.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
CreatingPatActModules
|
|
Packit |
d27c7e |
A document for module writers who are writing new pattern/
|
|
Packit |
d27c7e |
action modules.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
modules.xml
|
|
Packit |
d27c7e |
modules.xml contains a listing of all Perl XML packages and
|
|
Packit |
d27c7e |
their public modules categorized by several topics.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
INSTALLATION
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
In order to use this package you will need Perl version 5.005 or
|
|
Packit |
d27c7e |
better. Several other modules may also be required to use some
|
|
Packit |
d27c7e |
modules in libxml-perl, including XML::Parser, XML::DOM, and
|
|
Packit |
d27c7e |
XML::Grove. These are all available in the XML module directory
|
|
Packit |
d27c7e |
on CPAN.
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
<http://www.perl.com/CPAN/modules/by-module/XML/>
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
You install libxml-perl, as you would install any perl module
|
|
Packit |
d27c7e |
library, by running these commands:
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
perl Makefile.PL
|
|
Packit |
d27c7e |
make
|
|
Packit |
d27c7e |
make test
|
|
Packit |
d27c7e |
make install
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
If you want to install a private copy of libxml-perl in your home
|
|
Packit |
d27c7e |
directory, then you should try to produce the initial Makefile
|
|
Packit |
d27c7e |
with something like this command:
|
|
Packit |
d27c7e |
|
|
Packit |
d27c7e |
perl Makefile.PL PREFIX=~/perl
|
|
Packit |
d27c7e |
|