Sounds good, Aaron.

Thanks for clarifying. That makes a whole lot more sense. I'm sure
Richard and I aren't the only ones would assumed an XML package would
escape data. RTFM I guess. :)

I only mentioned JSON because the YAJL package does do all necessary
escaping so I guess I got spoiled using that.. haha!


On Wed, Dec 16, 2015 at 7:34 AM, Aaron Bartell <aaronbartell@xxxxxxxxx>

Escape the data yourself or use CDATA.

Yes, that's correct.

I think I like JSON better.

JSON has 8+ things needing to be escaped, though some of them are less
common than an ampersand.

Aaron Bartell - Services for open source on IBM i

On Tue, Dec 15, 2015 at 10:26 PM, Bradley Stone <bvstone@xxxxxxxxx> wrote:

Ah.. I may have found my answer... I asked this a few emails ago but got
reply. Escape the data yourself or use CDATA. :)

Interensting.. I think I like JSON better. :)


{ // The URL class does not itself encode or decode any URL components
according to the escaping mechanism defined in RFC2396.
// It is the responsibility of the caller to encode any fields,
need to be escaped prior to calling URL,
// and also to decode any escaped fields, that are returned from
Furthermore, because URL has no knowledge of URL escaping,
// it does not recognise equivalence between the encoded or decoded
form of the same URL

This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].