Fix libxml2 usage

Remove calls to xmlCleanupParser after each XML parsing. This call
deinitializes the library itself, and multiple calls likely leaded
to heap corruption due to duple frees, which led to strange crashes
on desktop systems (for example, when opening Project submenu).

Instead, initialize and deinialize the library once, like it's done
with curl.