Hi
I have written a small exe in vb6 that reads in a text file one line at a time.
Using two of the fields (accountref and propertyref) from the text file the program queries an XML document, for the presence of an <account> element with an acctref attribute that matches the "accountref" value read in from the text file.
If a match is made then program will return the <account> node to the calling code.
The program then queries the <account> parent to check for the presence of the propertyref value within a <propref> child node. If this exists then the current sequence number from the <propref> sibling <seq>nn</seq> is returned.
If neither the accountref and/or the propertyref exist then they are created/inserted at the appropriate position withi the xml document.
The idea is that the xml doc is updated following each import run.
However....there are 20,000 accounts within the xml document
which amounts to 85,000 lines of text and 2.6Mb.
My real question is that I am using the XMLDOM (msxml4.dll) to do the work and wondered if there is a better/quicker method of solving this problem.
any help or advice would be appreciated.
I have written a small exe in vb6 that reads in a text file one line at a time.
Using two of the fields (accountref and propertyref) from the text file the program queries an XML document, for the presence of an <account> element with an acctref attribute that matches the "accountref" value read in from the text file.
If a match is made then program will return the <account> node to the calling code.
The program then queries the <account> parent to check for the presence of the propertyref value within a <propref> child node. If this exists then the current sequence number from the <propref> sibling <seq>nn</seq> is returned.
If neither the accountref and/or the propertyref exist then they are created/inserted at the appropriate position withi the xml document.
The idea is that the xml doc is updated following each import run.
However....there are 20,000 accounts within the xml document
which amounts to 85,000 lines of text and 2.6Mb.
My real question is that I am using the XMLDOM (msxml4.dll) to do the work and wondered if there is a better/quicker method of solving this problem.
any help or advice would be appreciated.