Rutger Vos > Bio-Phylo-0.17_RC6 > Bio::Phylo::Util::XMLWritable

Download:
Bio-Phylo-0.17_RC6.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  1
View Bugs
Report a bug
Source   Latest Release: Bio-Phylo-0.17_RC9

NAME ^

Bio::Phylo::Util::XMLWritable - Superclass for objects that stringify to xml

SYNOPSIS ^

 # no direct usage

DESCRIPTION ^

This class implements a single method, 'to_xml', that writes the invocant to an xml string. Objects that subclass this class (all biological data objects in Bio::Phylo) therefore can be written to xml. The 'to_xml' method sometimes yields ugly (but valid) results, so subclasses may choose to provide their own override.

METHODS ^

to_xml()

Serializes invocant to XML.

 Type    : XML serializer
 Title   : to_xml
 Usage   : my $xml = $obj->to_xml;
 Function: Serializes $obj to xml
 Returns : An xml string
 Args    : None

SEE ALSO ^

Also see the manual: Bio::Phylo::Manual.

REVISION ^

 $Id: XMLWritable.pm 4234 2007-07-17 13:41:02Z rvosa $