I have an XML stream parsed from Quickbooks and I want to retrieve certain information from the stream. Basically move through the document and take information from within the XML tags. In VB, I could use:
intStart = strStream.IndexOf("<Customer>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
intEnd = strStream.IndexOf("</Customer>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
'take string between Start and End
strTxt = strStream.SubString(intStart , intEnd)
//shorten string to start from last position
strStream = strStream.SubString(intEnd)
...
etc.
How can I do this in Delphi?
I can copy buy using:
Copy(strStream, intStart, intEnd);
I am not sure of the rest...
Is there a more efficient way of doing this, seeing as the string is several thousand characters?
------------------------------------
There's no place like 127.0.0.1
------------------------------------
intStart = strStream.IndexOf("<Customer>"
intEnd = strStream.IndexOf("</Customer>"
'take string between Start and End
strTxt = strStream.SubString(intStart , intEnd)
//shorten string to start from last position
strStream = strStream.SubString(intEnd)
...
etc.
How can I do this in Delphi?
I can copy buy using:
Copy(strStream, intStart, intEnd);
I am not sure of the rest...
Is there a more efficient way of doing this, seeing as the string is several thousand characters?
------------------------------------
There's no place like 127.0.0.1
------------------------------------