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



True. Right now, it's a character literal I want to insert. I guess if it was user input, you'd need to encode the value.

Thanks



-----Original Message-----
From: Evan Harris [mailto:auctionitis@xxxxxxxxx]
Sent: Thursday, September 06, 2018 3:47 PM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Subject: Re: Replace text in XML file

The only (potential) issue I can see using this approach is that if you are not using XML tooling then it becomes possible to insert text into the tags that would not be allowed by a parser.

I mention this because I have done similar things in the past but got bitten on at least one occasion.

On Fri, Sep 7, 2018 at 6:11 AM Justin Taylor <JUSTIN@xxxxxxxxxxxxx> wrote:

Perfect! This works like a champ:
sed 's|<XML_Tag />|<XML_Tag>value_here</XML_Tag>|' sed_test >
sed_test_out


I heard back from IBM, and a new PTF (SI68235) is required to fix a
known issue with the RPG ON-EXIT command.


Thanks guy!






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.