Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » XML Encoding attribute
XML Encoding attribute [message #589557] Fri, 02 July 2004 14:06
Paul Cooper is currently offline Paul CooperFriend
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.
Previous Topic:plugin not loaded when I include XSD dependency
Next Topic:Error, "XSD: The location 'http://.. ' may not resolve to something other than a schema"
Goto Forum:
  


Current Time: Fri Apr 26 23:45:23 GMT 2024

Powered by FUDForum. Page generated in 4.80601 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top