× 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.



Hi Nathan

I'm not generating this XML. I am consuming it. And I am very sure that we are not going to get the software changed on the other end to encode spaces.

The contents of the XML is being sent to us, to be stored in a PF on our system. Display will be in an existing DSPF.

So the use of sed (or some other search/replace utility) is to do the encoding in this rather narrow context. I'd replace each space in <custno> with the entity using ASCII number.

Thanks
Vern

On 9/20/2013 2:43 PM, Nathan Andelin wrote:
My main option is to encode these particular spaces - sed should do the
trick with a little effort.
I don't understand the context for using sed for encoding. Manually encode XML element values? I generally envision generating XML from database row/column values. Or parsing XML and loading it into DB row/column values.

Sometimes I run into encoding issues related to the IBM i HTTP server, configuration options, content-type, and charset values embedded in HTTP Post data. Is that what you're afraid of?

-Nathan



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.