Hi,

do your XML schemas have an encoding specified ?

Werner

mnradhaki wrote:
> When Marshaling Java Object into XML, it generates the xml with encoding even
> if I don't specify any encoding.
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> When I generate the Schema using SourceGenerator generateSource method, I
> get the following error:
> 
> org.xml.sax.SAXParseException: Declared encoding "UTF-8" does not match
> actual one "Cp1252"; this might not be an error.
> 
> If I manually delete the encoding in the XML and generate XSD, it works fine
> (but I don't want to do any manual changes to the generated XML)
> Or if setEncoding to Cp1252 while generating the XML, generateSource
> wouldn't complain about the encoding mismatch, but the generated XSD
> contains the encoding "UTF-8", which I will have to manually edit it to
> Cp1252 before generating the Source from the XSD otherwise it would complain
> about the encoding mismatch again.
> 
> My question is, is there any way to turn encoding off while generating the
> XML or is there any way to specify encoding while generating the XSD?

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to