[PATCH] util: open XML files before calling libxml2