fixes types in examples
The xmlCleanupParser function does not allow to reuse the xml parser.
see http://xmlsoft.org/html/libxml-parser.html#xmlCleanupParser