ubyte[] writeXmlBytes(XmlDocument document, XmlWriteOptions options = XmlWriteOptions.init)
Serializes a document to raw bytes.