add parseXML function found on w3 schools