[mono-api-info] Use XmlWriter instead of XmlDocument to make this faster.