updating and fixing puts_XML_tags.php