Writes the passed XSD schema into the passed System.IO.Stream.
document The System.Xml.Schema.XmlSchema to write into stream. stream The System.IO.Stream into which the serialized XSD schema is written.