| 1 |
<HTML> |
| 2 |
<HEAD> |
| 3 |
<TITLE>libxml-perl</TITLE> |
| 4 |
<META NAME="keywords" CONTENT="XML SGML Perl libxml libxml-perl"> |
| 5 |
</HEAD> |
| 6 |
<BODY> |
| 7 |
<TABLE WIDTH="100%"> |
| 8 |
<TR><TD VALIGN="TOP"><font size="6">libxml-perl</font><br> |
| 9 |
Current version is @VERSION@ <br> |
| 10 |
</TD><TD> |
| 11 |
libxml-perl is a collection of Perl modules, |
| 12 |
scripts, and documents for working with XML in Perl. libxml-perl |
| 13 |
software works in combination with XML::Parser, PerlSAX, XML::DOM, |
| 14 |
XML::Grove, and others.</TD> |
| 15 |
</TABLE> |
| 16 |
|
| 17 |
<P>Questions about how to use this library should be directed to the |
| 18 |
<TT>comp.lang.perl.modules</TT> USENET Newsgroup. Bug reports and |
| 19 |
suggestions for improvements can be sent to the |
| 20 |
<[email protected]> mailing list. This mailing list is |
| 21 |
also the place for general discussions and development of the |
| 22 |
libxml-perl package.</P> |
| 23 |
|
| 24 |
<P>To join the Perl-XML mailing list, send an email message to |
| 25 |
[email protected] with the following text in the body: |
| 26 |
<PRE> |
| 27 |
Subscribe Perl-XML |
| 28 |
</PRE></P> |
| 29 |
|
| 30 |
<TABLE WIDTH="100%"> |
| 31 |
<TR><TD VALIGN="TOP"> |
| 32 |
|
| 33 |
|
| 34 |
<font size="5" face="Helvetica,Arial"><B>Source</B></font><br> |
| 35 |
libxml-perl source is available on CPAN in the <a |
| 36 |
href="http://www.perl.com/CPAN/modules/by-module/XML/">XML module |
| 37 |
directory</a>. This link goes through the CPAN redirector so if the |
| 38 |
site gives you any problems, just click it again and you will be |
| 39 |
redirected to a different site.<br><br> |
| 40 |
|
| 41 |
libxml-perl source is also available <a |
| 42 |
href="libxml-perl-@[email protected]">here</a>.<br><br> |
| 43 |
|
| 44 |
The libxml-perl-@VERSION@ <A HREF="libxml-perl-@[email protected]">README</a><br><br> |
| 45 |
|
| 46 |
|
| 47 |
<font size="5" face="Helvetica,Arial"><B>Modules</B></font><br> |
| 48 |
|
| 49 |
The following modules are part of libxml-perl. Below they are marked with their release status:<br><br> |
| 50 |
|
| 51 |
<TABLE> |
| 52 |
<TR><TD VALIGN="TOP"> STABLE</TD><TD>has been in use for a while with few or no outstanding bugs</TD></TR> |
| 53 |
<TR><TD VALIGN="TOP"> BETA</TD><TD>interfaces are stable but there may still be bugs</TD></TR> |
| 54 |
<TR><TD VALIGN="TOP"> ALPHA</TD><TD>interfaces are changing, there may be lots of bugs, and there may not be docs available yet</TD></TR> |
| 55 |
</TABLE> |
| 56 |
|
| 57 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3AParser%3A%3APerlSAX.html">XML::Parser::PerlSAX</a></B></font><br> |
| 58 |
<font size="2"> BETA</font><br> |
| 59 |
XML::Parser::PerlSAX is a PerlSAX parser using XML::Parser (which uses James Clark's Expat XML Parser).<br><br> |
| 60 |
|
| 61 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3AHandler%3A%3AXMLWriter.html">XML::Handler::XMLWriter</a></B></font><br> |
| 62 |
<font size="2"> BETA</font><br> |
| 63 |
A PerlSAX handler for writing readable XML (in contrast to Canonical |
| 64 |
XML, for example). XMLWriter is also subclassable and supports |
| 65 |
calling start and end methods by element-names (subclassed from |
| 66 |
XML::Handler::Subs). XMLWriter is similar to XML::Parser's Stream |
| 67 |
style.<br><br> |
| 68 |
|
| 69 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3AHandler%3A%3ASubs.html">XML::Handler::Subs</a></B></font><br> |
| 70 |
<font size="2"> BETA</font><br> |
| 71 |
A PerlSAX handler base class that calls start and end methods by |
| 72 |
element-names. Subs is similar to XML::Parser's Subs style.<br><br> |
| 73 |
|
| 74 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3AHandler%3A%3ACanonXMLWriter.html">XML::Handler::CanonXMLWriter</a></B></font><br> |
| 75 |
<font size="2"> BETA</font><br> |
| 76 |
XML::Handler::CanonXMLWriter is a PerlSAX handler that outputs in <A |
| 77 |
HREF="http://www.jclark.com/xml/canonxml.html">Canonical |
| 78 |
XML</a>.<br><br> |
| 79 |
|
| 80 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3AHandler%3A%3ASample.html">XML::Handler::Sample</a></B></font><br> |
| 81 |
<font size="2"> BETA</font><br> |
| 82 |
XML::Handler::Sample is a PerlSAX handler that simply prints out the |
| 83 |
event names as they are parsed by a PerlSAX parser. It can be used for |
| 84 |
debugging or as a template for building new handlers. |
| 85 |
XML::Handler::Sample contains handlers for all known parser events.<br><br> |
| 86 |
|
| 87 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3AESISParser.html">XML::ESISParser</a></B></font><br> |
| 88 |
<font size="2"> BETA</font><br> |
| 89 |
XML::ESISParser is a validating PerlSAX parser using James Clark's |
| 90 |
`nsgmls' SGML/XML Parser. ESISParser supports both XML and SGML |
| 91 |
document instances. Unless you need validation, you should probably |
| 92 |
be using XML::Parser::PerlSAX or XML::Parser.<br><br> |
| 93 |
|
| 94 |
XML::ESISParser with XML::Grove obsolete the SGML::SPGroveBuilder and SGML::Grove modules.<br><br> |
| 95 |
|
| 96 |
<font size="4" face="Helvetica,Arial"><B><A HREF="Data%3A%3AGrove.html">Data::Grove</a>, <A HREF="Data%3A%3AGrove%3A%3AParent.html">Data::Grove::Parent</A>, <A HREF="Data%3A%3AGrove%3A%3AVisitor.html">Data::Grove::Visitor</A></B></font><br> |
| 97 |
<font size="2"> BETA</font><br> |
| 98 |
Data::Grove and it's helpers provide a base class for deeply nested or |
| 99 |
directed graph structures. Used by XML::Grove (and others soon).<br><br> |
| 100 |
|
| 101 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3ASAX2Perl.html">XML::SAX2Perl</A>, <A HREF="XML%3A%3APerl2SAX.html">XML::Perl2SAX</A></B></font><br> |
| 102 |
<font size="2"> ALPHA</font><br> |
| 103 |
SAX2Perl and Perl2SAX are SAX Parser<->DocumentHandler filters. These |
| 104 |
modules translate parse events between the Java/CORBA style SAX |
| 105 |
methods and PerlSAX style methods.<br><br> |
| 106 |
|
| 107 |
<b>The following modules will very likely be renamed in the next release.</b> |
| 108 |
|
| 109 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3APatAct%3A%3AMatchName.html">XML::PatAct::MatchName</A></B></font><br> |
| 110 |
<font size="2"> ALPHA</font><br> |
| 111 |
MatchName is a pattern matching module that can be used with PatAct |
| 112 |
action modules. MatchName uses simple element names or element name |
| 113 |
lists to match names to actions.<br><br> |
| 114 |
|
| 115 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3APatAct%3A%3AToObjects.html">XML::PatAct::ToObjects</A></B></font><br> |
| 116 |
<font size="2"> ALPHA</font><br> |
| 117 |
ToObjects is a PatAct action module. ToObjects can be used to create |
| 118 |
application-ready Perl objects from XML instances.<br><br> |
| 119 |
|
| 120 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3APatAct%3A%3AAmsterdam.html">XML::PatAct::Amsterdam</A></B></font><br> |
| 121 |
<font size="2"> ALPHA</font><br> |
| 122 |
Amsterdam is a PatAct action module. Amsterdam can be used to apply a |
| 123 |
very simple form of style-sheet to an XML instance by using ``before'' |
| 124 |
and ``after'' strings that are output before and after the contents of |
| 125 |
elements.<br><br> |
| 126 |
|
| 127 |
<font size="4" face="Helvetica,Arial"><B><A HREF="XML%3A%3APatAct%3A%3APatternTempl.html">XML::PatAct::PatternTempl</A>, <A HREF="XML%3A%3APatAct%3A%3AActionTempl.html">XML::PatAct::ActionTempl</A></B></font><br> |
| 128 |
<font size="2"> BETA</font><br> |
| 129 |
PatternTempl and ActionTempl are template files that pattern/action |
| 130 |
module writers can copy to create new modules. See Creating PatAct |
| 131 |
Modules for more information.<br><br> |
| 132 |
|
| 133 |
|
| 134 |
<font size="5" face="Helvetica,Arial"><B>Documents</B></font><br> |
| 135 |
|
| 136 |
<font size="4" face="Helvetica,Arial"><B><A HREF="PerlSAX.html">PerlSAX</A></B></font><br> |
| 137 |
This document defines a Perl binding to SAX 1.0. PerlSAX-based parser |
| 138 |
modules implement and possibly extend the interface described in |
| 139 |
PerlSAX.<br><br> |
| 140 |
|
| 141 |
<font size="4" face="Helvetica,Arial"><B><A HREF="UsingPerlSAX.html">Using PerlSAX</A></B></font><br> |
| 142 |
UsingPerlSAX is a brief introduction to PerlSAX using the |
| 143 |
XML::Parser::PerlSAX module.<br><br> |
| 144 |
|
| 145 |
<font size="4" face="Helvetica,Arial"><B><A HREF="UsingPatActModules.html">Using PatAct Modules</A></B></font><br> |
| 146 |
Describes how to use pattern/action modules to transform XML |
| 147 |
instances.<br><br> |
| 148 |
|
| 149 |
<font size="4" face="Helvetica,Arial"><B><A HREF="CreatingPatActModules.html">Creating PatAct Modules</A></B></font><br> |
| 150 |
A document for module writers who are writing new pattern/ action |
| 151 |
modules.<br><br> |
| 152 |
|
| 153 |
<font size="4" face="Helvetica,Arial"><B><A HREF="modules.xml">modules.xml</A></B></font><br> |
| 154 |
modules.xml contains a listing of all Perl XML packages and their |
| 155 |
public modules categorized by several topics.<br><br> |
| 156 |
|
| 157 |
</TD> |
| 158 |
<TD VALIGN="TOP"> |
| 159 |
|
| 160 |
<font size="5" face="Helvetica,Arial"><B>News</B></font><br> |
| 161 |
|
| 162 |
|
| 163 |
<FONT SIZE=4 face="Helvetica,Arial"><B><A |
| 164 |
HREF="http://bitsko.slc.ut.us/libxml-perl/">libxml-perl-0.07</A></b></FONT><BR> |
| 165 |
|
| 166 |
<font size=2>February 22, 2000</font><BR> |
| 167 |
|
| 168 |
<TABLE> |
| 169 |
<TR><TD VALIGN="TOP">-</TD><TD>doc/index.html: libxml-perl site index</TD></TR> |
| 170 |
<TR><TD VALIGN="TOP">-</TD><TD>doc/mirror.sh: creates a libxml-perl mirror site</TD></TR> |
| 171 |
<TR><TD VALIGN="TOP">-</TD><TD>Fixes: |
| 172 |
<TABLE> |
| 173 |
<TR><TD VALIGN="TOP">-</TD><TD>all modules: release script didn't |
| 174 |
insert version numbers in Perl modules. Reported by <a |
| 175 |
href="mailto:[email protected]">Enno Derksen</a></TD></TR> |
| 176 |
<TR><TD VALIGN="TOP">-</TD><TD>doc/modules.xml: well-formedness errors. Reported by <a href="mailto:[email protected]">KangChan Lee</a></TD></TR> |
| 177 |
</TABLE> |
| 178 |
</TD></TR> |
| 179 |
</TABLE> |
| 180 |
<BR> |
| 181 |
|
| 182 |
|
| 183 |
<FONT SIZE=4 face="Helvetica,Arial"><B><A |
| 184 |
HREF="http://bitsko.slc.ut.us/libxml-perl/">libxml-perl-0.06</A></b></FONT><BR> |
| 185 |
|
| 186 |
<font size=2>February 4, 2000</font><BR> |
| 187 |
|
| 188 |
<TABLE> |
| 189 |
<TR><TD VALIGN="TOP">-</TD><TD>all modules: add $VERSION. Suggested |
| 190 |
by <a href="mailto:[email protected]">Michael Koehne</a></TD></TR> |
| 191 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::Parser::PerlSAX: add |
| 192 |
UseAttributeOrder option and AttributeOrder and Defaulted properties |
| 193 |
to start_element() handler. Suggested by <a |
| 194 |
href="mailto:[email protected]">Enno Derksen</a> </TD></TR> |
| 195 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::Parser::PerlSAX: add start_cdata, |
| 196 |
end_cdata, and entity_reference events</TD></TR> |
| 197 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::PatAct::Amsterdam: added Output |
| 198 |
and AsString options, added support for replacing attributes</TD></TR> |
| 199 |
<TR><TD VALIGN="TOP">-</TD><TD>Data::Grove: add a |
| 200 |
Data::Grove::Characters class to act as a default grove object for |
| 201 |
containing characters.</TD></TR> |
| 202 |
<TR><TD VALIGN="TOP">-</TD><TD>Fixes: |
| 203 |
<TABLE> |
| 204 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::PatAct::ToObjects: removed |
| 205 |
leftover debugging statement</TD></TR> |
| 206 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::ESISParser: report record end as |
| 207 |
characters if no record_end() handler</TD></TR> |
| 208 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::Parser::PerlSAX: For attribute |
| 209 |
list declarations, now correctly calls the attlist_decl() method and |
| 210 |
passes the ElementName property, it used to call entity_decl() passing |
| 211 |
EntityName. Reported by <a href="mailto:[email protected]">Enno |
| 212 |
Derksen</a> and <a href="mailto:[email protected]">Colin |
| 213 |
Muller</a></TD></TR> |
| 214 |
</TABLE> |
| 215 |
</TD></TR> |
| 216 |
</TABLE> |
| 217 |
<BR> |
| 218 |
|
| 219 |
|
| 220 |
<FONT SIZE=4 face="Helvetica,Arial"><B><A |
| 221 |
HREF="http://bitsko.slc.ut.us/libxml-perl/">libxml-perl-0.05</A></b></FONT><BR> |
| 222 |
|
| 223 |
<font size=2>August 16, 1999</font><BR> |
| 224 |
|
| 225 |
<TABLE> |
| 226 |
<TR><TD VALIGN="TOP">-</TD><TD>Major update to PerlSAX specification |
| 227 |
<TABLE> |
| 228 |
<TR><TD VALIGN="TOP">-</TD><TD>Added an introduction</TD></TR> |
| 229 |
<TR><TD VALIGN="TOP">-</TD><TD>Added a ``Deviations from the Java version'' section</TD></TR> |
| 230 |
<TR><TD VALIGN="TOP">-</TD><TD>Re-added the `<tt>set_document_locator()</tt>' handler method</TD></TR> |
| 231 |
<TR><TD VALIGN="TOP">-</TD><TD>Added arguments to method synopses</TD></TR> |
| 232 |
<TR><TD VALIGN="TOP">-</TD><TD>Attributed most of the content to the SAX 1.0 JavaDoc</TD></TR> |
| 233 |
<TR><TD VALIGN="TOP">-</TD><TD>Minor typos</TD></TR> |
| 234 |
</TABLE> |
| 235 |
</TD></TR> |
| 236 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::Handler::XMLWriter: a new PerlSAX handler for writing readable XML (in contrast to Canonical XML)</TD></TR> |
| 237 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::Handler::Subs: a new PerlSAX handler base class for calling user-defined subs</TD></TR> |
| 238 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::PatAct::ToObjects: add <tt>CopyAttributes</tt> option, add <tt>-grove-contents</tt> action</TD></TR> |
| 239 |
<TR><TD VALIGN="TOP">-</TD><TD>All PatAct modules can now take parameters as either a list of key, value pairs or a hash</TD></TR> |
| 240 |
<TR><TD VALIGN="TOP">-</TD><TD>Fixes: |
| 241 |
<TABLE> |
| 242 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::ESISParser wasn't testing handlers for what methods they support</TD></TR> |
| 243 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::Parser::PerlSAX wasn't forwarding XML::Parser Element events</TD></TR> |
| 244 |
</TABLE> |
| 245 |
</TD></TR> |
| 246 |
</TABLE> |
| 247 |
<BR> |
| 248 |
|
| 249 |
|
| 250 |
<FONT SIZE=4 face="Helvetica,Arial"><B><A |
| 251 |
HREF="http://bitsko.slc.ut.us/libxml-perl/">libxml-perl-0.04</A></b></FONT><BR> |
| 252 |
|
| 253 |
<font size=2>August 11, 1999</font><BR> |
| 254 |
|
| 255 |
<TABLE> |
| 256 |
<TR><TD VALIGN="TOP">-</TD><TD>Added pattern/action modules for name matching, converting to objects, and applying simple styles -- XML::PatAct::MatchName, XML::PatAct::ToObjects, and XML::PatAct::Amsterdam.</TD></TR> |
| 257 |
<TR><TD VALIGN="TOP">-</TD><TD>Added ``Using PatAct Modules'' and ``Creating PatActModules'' docs.</TD></TR> |
| 258 |
<TR><TD VALIGN="TOP">-</TD><TD>XML::Parser::PerlSAX and XML::ESISParser were not passing a hash for `<tt>start_document()</tt>' and `<tt>end_document()</tt>' per spec.</TD></TR> |
| 259 |
</TABLE> |
| 260 |
<BR> |
| 261 |
|
| 262 |
|
| 263 |
<FONT SIZE=4 face="Helvetica,Arial"><B><A |
| 264 |
HREF="http://bitsko.slc.ut.us/libxml-perl/">libxml-perl-0.03</A></b></FONT><BR> |
| 265 |
|
| 266 |
<font size=2>May 26, 1999</font><BR> |
| 267 |
|
| 268 |
<TABLE> |
| 269 |
<TR><TD VALIGN="TOP">-</TD><TD>added XML::Handler::CanonXMLWriter and test</TD></TR> |
| 270 |
</TABLE> |
| 271 |
<BR> |
| 272 |
|
| 273 |
|
| 274 |
<FONT SIZE=4 face="Helvetica,Arial"><B><A |
| 275 |
HREF="http://bitsko.slc.ut.us/libxml-perl/">libxml-perl-0.02</A></b></FONT><BR> |
| 276 |
|
| 277 |
<font size=2>May 24, 1999</font><BR> |
| 278 |
|
| 279 |
<TABLE> |
| 280 |
<TR><TD VALIGN="TOP">-</TD><TD>renamed package from `libxml' to `libxml-perl'</TD></TR> |
| 281 |
<TR><TD VALIGN="TOP">-</TD><TD>added doc/modules.xml</TD></TR> |
| 282 |
<TR><TD VALIGN="TOP">-</TD><TD>added doc/UsingPerlSAX.pod and example files</TD></TR> |
| 283 |
<TR><TD VALIGN="TOP">-</TD><TD>moved PerlSAX.pod and interface-style.pod to `doc/'</TD></TR> |
| 284 |
<TR><TD VALIGN="TOP">-</TD><TD>renamed Data::Grove::Tied to Data::Grove::Parent</TD></TR> |
| 285 |
</TABLE> |
| 286 |
<BR> |
| 287 |
|
| 288 |
|
| 289 |
</TD></TR> |
| 290 |
|
| 291 |
</TABLE> |
| 292 |
|
| 293 |
|
| 294 |
<font size="5" face="Helvetica,Arial"><B>Contributors</B></font><br> |
| 295 |
The following have shared their code, documents, comments, and/or suggestions for libxml-perl:<br><br> |
| 296 |
|
| 297 |
Clark Cooper<br> |
| 298 |
Eduard (Enno) Derksen<br> |
| 299 |
Michael Koehne<br> |
| 300 |
KangChan Lee<br> |
| 301 |
Ken MacLeod<br> |
| 302 |
Colin Muller<br> |
| 303 |
Eric Prud'hommeaux<br> |
| 304 |
Larry Wall<br> |
| 305 |
|
| 306 |
|
| 307 |
</BODY> |