NAME

Treemap::Input::XML

An input class to read in XML documents of a specific format suitable for use with Treemap objects. The format is explained below.

SYNOPSIS

 #!/usr/bin/perl -w
 use Treemap::Input::XML;
 
 my $xml = Treemap::Input::XML->new();
 $xml->load( "somefile.xml" );

DESCRIPTION

This class reads in an XML file, and makes the data available for use to a Treemap object.

The format of the XML file is as follows:

 <children name="test1" size="8" colour="#FFFFFF">
   <children name="test1sub1" size="4" colour="#FF0000">
     <children name="test1sub1sub1" size="2" colour="#00FF00" />
     <children name="test1sub1sub2" size="2" colour="#00FF00" />
   </children>
   <children name="test1sub2" size="4" colour="#FFFF00" />
 </children>

Note that the size of a parent node must be the sum of all it's children.

METHODS

new()

Instantiate a new object

load( "path/to/file.xml" )

Loads the XML data from the specified file path.

SEE ALSO

Treemap::Input, Treemap

AUTHORS

Simon Ditner <simon@uc.org>, and Eric Maki <eric@uc.org>

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2 POD Errors

The following errors were encountered while parsing the POD:

Around line 64:

=back doesn't take any parameters, but you said =back 4

Around line 102:

=back doesn't take any parameters, but you said =back 4