Fixed XML parsing issues for older simple_xml library