Convert the writer to new output buffer and save APIs Only a handful of places had to be converted for xmlBuf and the new saving entry point.