Every element node in the parse tree is represented by an arrayref of
the form: [ elementname, \%attributes, ...subnodes... ].
See the example tree dump in the Synopsis, above.
Every text node in the tree is represented by a simple (non-ref)
string scalar. So you can test ref($node) to see whather you have
an element node or just a text node.
The top node in the tree is [ 'Document', \%attributes,
I<...subnodes...> ]
Copyright (c) 2002 Sean M. Burke. All rights reserved.
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of
merchantability or fitness for a particular purpose.