XML::SpewXML::Spew can spew small chunks of XML. | |
Download |
XML::Spew Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Mike Friedman
- Publisher web site:
- http://search.cpan.org/~friedo/
XML::Spew Tags
XML::Spew Description
XML::Spew can spew small chunks of XML. XML::Spew can spew small chunks of XML.SYNOPSIS package My::Spew; use base 'XML::Spew'; __PACKAGE__->_tags(qw/foo bar baz narf poit/); package main; my $spew = My::Spew->_new; print $spew->foo( $spew->bar( { id => 1 } ), $spew->bar( { id => 2 }, $spew->baz( "Hi-diddly-ho, neighborino." ) ) );Sometimes you just need to quickly output a small chunk of XML and you don't need a big DOM API or XML framework. At the same time, you don't want to assemble tedious print statements or HERE-docs. You can subclass XML::Spew to create objects for easily generating well-formed XML element trees with a minimum of fuss. Spew does not guarantee document validity; you must take care to properly encode any special characters and ensure that your tags make sense. Requirements: · Perl
XML::Spew Related Software