Processing XML with Perl | Michel Rodriguez |
XML Generation Modules | XML::Writer (cont'd) |
XML::Writer
Description
XML::Writer (theoryx5.uwinnipeg.ca/CPAN/data/XML-Writer/Writer.html) generates XML using an interface similar to CGI.pm. It allows various checks to be performed on the document and takes care of special caracter encoding.
Why use XML::Writer?
- you are generating XML documents "from scratch"
- you are used to CGI.pm
- XML::Writer is quite mature
Why NOT use XML::Writer?
- another method is more appropriate
- you don't like CGI.pm!
Related modules
XML::ValidWriter (theoryx5.uwinnipeg.ca/CPAN/data/XML-AutoWriter/XML/ValidWriter.html) and XML::AutoWriter (theoryx5.uwinnipeg.ca/CPAN/data/XML-AutoWriter/XML/AutoWriter.html) both aim at emulating XML::Writer interface:
- XML::ValidWriter performs some checks on the output document. Notably it checks whether the elements and attributes are declared in the DTD.
- XML::AutoWriter automatically generates missing start or end tags, based on the DTD.
XML::Generator (theoryx5.uwinnipeg.ca/CPAN/data/XML-Generator/Generator.html) and XML::Handler::YAWriter (theoryx5.uwinnipeg.ca/CPAN/data/XML-Handler-YAWriter/YAWriter.html) are 2 other modules doing XML generation
XML Generation Modules | XML::Writer (cont'd) |