| 1 |
XML::Writer is a simple Perl module for writing XML documents: it |
| 2 |
takes care of constructing markup and escaping data correctly, and by |
| 3 |
default, it also performs a significant amount of well-formedness |
| 4 |
checking on the output, to make certain (for example) that start and |
| 5 |
end tags match, that there is exactly one document element, and that |
| 6 |
there are not duplicate attribute names. |
| 7 |
|
| 8 |
Here is an example: |
| 9 |
|
| 10 |
my $writer = new XML::Writer(); |
| 11 |
|
| 12 |
$writer->startTag('greeting', 'type' => 'simple'); |
| 13 |
$writer->characters("Hello, world!"); |
| 14 |
$writer->endTag('greeting'); |
| 15 |
$writer->end(); |
| 16 |
|
| 17 |
If necessary, error-checking can be turned off for production use. |
| 18 |
|
| 19 |
See the Changes file for detailed changes between versions. |
| 20 |
|
| 21 |
Copyright (c) 1999 by Megginson Technologies. |
| 22 |
Copyright (c) 2003 Ed Avis <[email protected]> |
| 23 |
Copyright (c) 2004-2010 Joseph Walton <[email protected]> |
| 24 |
|
| 25 |
Current development is hosted at <http://josephw.github.com/xml-writer-perl/>. |