Define functions to parse XML. #13