asXMLNode function

Converts non-XML node objects to XMLTextNode objects