Page 1 of 1

Does DataStage XML input support XML version 1.1

Posted: Fri Jan 23, 2009 10:28 am
by sjordery
Hi All,

I've had a search through, but couldn't find what I was after, so... as per the title really. We have a supplier that is considering "upgrading" the XML files they send us from version 1.0 to version 1.1.

As a test, I changed the header line on the input XML from:

Code: Select all

<?xml version="1.0" encoding="ISO-8859-1" ?>


to

Code: Select all

<?xml version="1.1" encoding="ISO-8859-1" ?>


Everything else in the file remained the same. I ran my job and it continued to work ok.

Have I missed something, or does this mean we're ok to take v1.1 XML files?

Thanks in advance.

Cheers,
S

Posted: Fri Jan 23, 2009 10:47 am
by chulett
There's more to it than that, for example:

http://www.w3.org/TR/xml11/#sec-xml11

So, unless the underlying parser DataStage uses is already 1.1 compliant, then I'd say no as it sure seems like it would need to change to support all that. Hopefully Ernie will be along and expound on this for us - if anyone knows, he will! We <3 Ernie. :wink:

Posted: Fri Jan 23, 2009 10:50 am
by sjordery
Thanks Craig.

Renewed my Premium membership about 15 mins ago, so will read your full answer later once it gets applied to the account. :)

Cheers,
S

Posted: Fri Jan 23, 2009 11:42 am
by sjordery
Ah, having read that.. am I right to say that putting version="1.1" in the heading wouldn't highlight an issue - problems would come if some 1.1 compliant content (that was not 1.0 compliant) appeared on the files....


Thanks again,
S

Posted: Fri Jan 23, 2009 11:47 am
by chulett
Exactly.