Add const qualifier to onXmlParseResult