Processing XML with Perl | Michel Rodriguez |
XML::DOM | Example: a (quasi!) HTML converter |
Introduction to XML::DOM
Description
XML::DOM (theoryx5.uwinnipeg.ca/CPAN/data/libxml-enno/XML/DOM.html) is a Perl implementation of W3C's DOM Level 1. It is one of the most widely used Perl XML modules. It is included in libxml-enno
XML::DOM adds some Perl specific features to the W3C recommendation.
Why use XML::DOM?
- you want to follow the W3C recommendation
- you want to use one of the most stable XML modules in Perl
- you already know the DOM, or you want to be able to use the same API in Java and in Perl
- in the future you want to interface easily with XML data bases
- you are seriously masochistic!
Why NOT use XML::DOM
- you have to process huge documents
- you need speed
- the DOM API is ugly!
Related Modules
XML::XQL::DOM (theoryx5.uwinnipeg.ca/CPAN/data/libxml-enno/XML/XQL/DOM.html) adds XQL support to XML::DOM.
XML::DOM::ValParser (theoryx5.uwinnipeg.ca/CPAN/data/libxml-enno/XML/DOM/ValParser.html) uses XML::Checker to validate doccuments at parse time.
XML::EasyOBJ (theoryx5.uwinnipeg.ca/CPAN/data/XML-EasyOBJ/EasyOBJ/EasyOBJ.html) is a module built on top of XML::DOM with a simpler and more perlish interface. This kind of module is an excellent idea: it gives you the ease of programming of the Perl way while preserving DOM compatibility.
XML::DOM | Example: a (quasi!) HTML converter |