}
static public void xsToXMLWriter(XmlStruct xmlStruct, Writer writer, SerializationOptions serializationOptions)
throws IOException, SAXException, XmlStructException
{
OutputFormat of = new OutputFormat("XML", null, false);
of.setPreserveSpace(true);
of.setOmitXMLDeclaration(true);
XMLSerializer serializer = new XMLSerializer(writer, of);
ContentHandler ch = serializer.asContentHandler();
ch.startDocument();
xmlStruct.xsToSAX(ch,serializationOptions);
ch.endDocument();