if a node has attributes get_metadata will return xmlobject. should be backward compatible