better_xml_handling

New methods for handling XML that can be used starting with next version.  Avoids the insertion of bogus extra elements, which happens with current functions.  Also much more concise.