XML Encoding attribute [message #589557] |
Fri, 02 July 2004 14:06 |
Paul Cooper Messages: 11 Registered: July 2009 |
Junior Member |
|
|
Hi,
I'm writing some XSD based code at the moment that is going to end up
being executed on a platform that uses an EBCDIC based filesystem. The
XSD code all seems to work fine in this enviroment except for in one
fairly common but erroneous use-case.
It's quite common for folk to ftp XML files in text mode. If this
happens and a codepage conversion also takes place then you end up with
an XML file that may contain an invalid encoding attribute (such as
<?xml version="1.0" encoding="UTF-8"?>) when the file is actually
something else (such as EBCDIC).
If I edit my schema documents by hand to correct the encoding then all's
well. If the schema is ftp'ed in binary mode then I would expect it to
work fine too. But if I ftp the schema in text mode and don't correct
the encoding statement then my XSD based code has problems parsing the
schema.
Is there any way to turn off support for the encoding tag? I know that
most XML parser will allow this to be done but when I use the XSD code
I don't have direct access to the underlying XML parser. Any ideas?
Thanks,
Paul.
|
|
|
Powered by
FUDForum. Page generated in 4.80601 seconds