XML::XOXO - Package for working with Extensible Open XHTML Outlines (XOXO) lists.
#!/usr/bin/perl -w use strict; use XML::XOXO; my $x = XML::XOXO::Parser->new; my $xoxo = $x->parsefile('/Users/tima/Desktop/code/xoxo/test.xoxo'); # print a list of urls and titles extracted from # the XOXO data. my @nodes = $xoxo->[0]->query('//li'); foreach (@nodes) { if (defined $_->attributes->{url}) { print $_->attributes->{url}; print ' '.$_->attributes->{title} if $_->attributes->{title}; print "\n"; } } # output the XOXO markup from the root element of # the first list found. print $xoxo->[0]->as_xml;
XML::XOXO is an object-oriented Perl API for working with XOXO lists. The package includes a parser, a simple perlish object tree model and a basic facility for re-serializing the data into XHTML fragments. The intent of XML::XOXO was to provide developer's with the core functionality needed to implement this more expressive and versatile alternative to OPML in their applications. It was also designed as the foundation for a library to work with the attention.xml specification and API that is in-progress, but incomplete.
XML::Parser, Class::XPath
XML::XOXO::Parser, XML::XOXO::Node
Extensible Open XHTML Outlines (XOXO) http://developers.technorati.com/wiki/xhtmloutlines
The software is released under the Artistic License. The terms of the Artistic License are described at http://www.perl.com/language/misc/Artistic.html.
Except where otherwise noted, XML::XOXO is Copyright 2005, Timothy Appnel, cpan@timaoutloud.org. All rights reserved.
2 POD Errors
The following errors were encountered while parsing the POD:
=begin without a target?
'=end' without a target?
To install XML::XOXO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm XML::XOXO
CPAN shell
perl -MCPAN -e shell install XML::XOXO
For more information on module installation, please visit the detailed CPAN module installation guide.