× 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 Tue, 04 Oct 2011 17:11:08 -0500, Rick.Chevalier 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've not had that problem. I'm using a construct like this:
xmlData = "";
KeyedDataQueue dq = new KeyedDataQueue(iHost, pathToQueue);
DataQueueEntry dqe = null;
do {
dqe = dq.read(dataQueueKey, 1, "EQ");
if (dqe != null) xmlData += dqe.getString();
} while(dqe != null);
dataExists = (xmlData.length() > 0);

hth

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.