The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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 $