Hi, I am having trouble using SourceGeneratorMain with XML schemas that have an encoding of UTF-16. Whenever the declaration at the top of the XML schema file is <?xml version="1.0" encoding="UTF-16" ?>, I get the following error when running SourceGeneratorMain:
org.xml.sax.SAXException: In document: 'file:///C:/Documents%20and%20Settings/Castor/test/word/new.xsd' Parsing Error : Content is not allowed in prolog. Line : 1 Column : 1 at org.exolab.castor.xml.schema.reader.Sax2ComponentReader.fatalError(Sax2ComponentReader.java:296) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:658) at org.exolab.castor.builder.SourceGenerator.generateSource(SourceGenerator.java:593) at org.exolab.castor.builder.SourceGeneratorMain.main(SourceGeneratorMain.java:312) I would really appreciate your help with the above problem. Thanks and regards, Shubh

