Writes the XML Schema to the supplied System.IO.TextWriter.
writer The System.IO.TextWriter to write to.