centralized XML operations in utils.xml_helper