Fixed xml_traverse so that it doesn't append opening tags at the end of the
routine. Also changed swimxml to output a string based on the array of xml
nodes.