Hi Scott,
Thanks for pointing me out... while it is another system (it could have
been a PTF issue) that I tried this "nicely formatted" example, I used
XML-INTO plenty of times without any issue. Anyway, I should stop
formatting XML tags nicely in examples.
Anyway, the reason I was making this example is... demonstrate that
whitespace is NOT preserved by XML-INTO ? If I changed the XML to...
XML = '<myRoot><aString>Hello
world</aString></myRoot>';
And parse it, the variable myRoot.aString contains "Hello world" with
only one, instead of 20 blanks ?
According to
http://www.w3schools.com/xml/xml_syntax.asp this is not
correct, and XML should preserve its whitespace unlike HTML (where you
can force it with which isn't recognized by XML neither).
Kind regards,
Paul
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: maandag 27 december 2010 18:52
To: RPG programming on the IBM i / System i
Subject: Re: XML-INTO - RNX0353 reason code 1
Hi Paul,
The problem is due to case-sensitivity. Because XML's specs define it
as a case-sensitive language, you could potentially have multiple XML
elements named 'MYROOT', 'MyRoot', 'myRoot', and 'myroot', and they'd
all be considered different elements! Because they're case sensitive,
'myRoot' is different from 'myroot'!
As an Amazon Associate we earn from qualifying purchases.