in reply to How to update an XML element

See HTML::Element. The tree build by XML::TreeBuilder is built of XML::Elements which are a subclass of HTML::Elements. From the XML::TreeBuilder documentation:

This module uses XML::Parser to make XML document trees constructed of XML::Element objects (and XML::Element is a subclass of HTML::Element adapted for XML).

The HTML::Element member you are probably looking for is as_XML().


Perl is environmentally friendly - it saves trees