asXMLTreeNode function

Convert a regular XML node to one for use in a "flat" tree