Fixed: flush libxml2 output buffer