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

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

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.

Instantiate a new object
Loads the XML data from the specified file path.


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

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