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



Mark,

The mainline code can be found here http://code.midrange.com/9149e5661a.html.


-----Original Message-----
From: rpg400-l-bounces+rick.chevalier=americredit.com@xxxxxxxxxxxx
[mailto:rpg400-l-bounces+rick.chevalier=americredit.com@xxxxxxxxxxxx]
On Behalf Of Mark S. Waterbury
Sent: Wednesday, October 05, 2011 1:51 PM
To: RPG programming on the IBM i / System i
Subject: Re: XML Toolkit concatenating strings on multiple calls

Rick:

Could we see the section of code that calls the code (procedure
WriteECEAudit) that you posted? That might help ...

Thanks,
Mark

> On 10/4/2011 6:11 PM, Rick.Chevalier@xxxxxxxxxxxxxxx wrote:
I am using the XML Toolkit 5.6(?) to create an XML string. The program is
processing entries from a data queue until the queue is empty. The XML is
being formed properly but the resulting string is being concatenated to the
previous result. For example, if there are three entries on the queue I will
get the correct XML string on the first call, the correct XML for the second
entry appended to the first XML string on the second call, and the correct
XML for the third entry appended to the XML string containing the first two
entries on the third call.

I have been trying various things all day to figure out how this is happening
but with no luck. It's probably some little thing I'm doing that isn't resetting a
buffer but I'm not seeing it. This is my first attempt to use the toolkit to
create XML. I used the examples and some other programs we have that
build XML with the toolkit to build my logic. A co-worker has looked at it with
me also but didn't see anything out of place.

The code can be found here:http://code.midrange.com/3f349cf405.html

Rick Chevalier

--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list To
post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.



Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited.

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.