AQXMLParser extracted from aqtoolkit