eval { $refXML = XMLin($tmpXML, KeepRoot => 1) }; die() if ($@);