Can't call method "getData" on an undefined value at parse_xml.pl line 87.