× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On the subject of special characters and XML, I found that the "less-than" (<) character doesn't always play nice. I have a need to send a password change to a API provided by an ISP. While not specifically excluded by their "characters not permitted" docs, I found that < does bad things in transit. So I added it to *our* list of characters not permitted, and coded an edit to deny it on input.

Michael Koester
Programmer/Analyst
DataEast - Granite State Communications

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Buck
Calabro
Sent: Wednesday, December 09, 2015 10:57 AM
To: rpg400-l@xxxxxxxxxxxx
Subject: Re: Dealing with "special" characters when Parsing XML with RPG

On 12/8/2015 6:42 PM, Bradley Stone wrote:
Ah.. I figured it was something like that.

Can you use hex arguments for the from and to?

It does not look like PASE sed supports working with hex representations,
but tr will work with octal representations.
http://www-
01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzahz/rzahzsed.htm?lang=en
http://www-
01.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzahz/rzahztr.htm?lang=en

I am having luck using ucs2 data, though. It's not reporting an error
when
converting using %char(). But, I don't how know it's going to look
just
yet. I'll have to check that out before I go a different route.
Maybe it will be as easy as replacing there. (btw, this customer is
currently on
V5R4 until they get some other software working on V7R2... the company
went out of business and didn't leave much for conversions).

But, I wrote my own %scanrpl type function years before IBM had it..
so I can use that. :)

--
--buck

Visit wiki.midrange.com and register for an account. Edit a page that
helps you, and because it's public, you'll help someone else, too!


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.