Fixed xmlparser for Python 2.6