Signo.X
Well-known member
Hello all,
Im trying to read the data from a text file into an arrayList, split them then create an xml document based on the data read from the .txt.
the .txt file could have the following data :
1
p2
3
...
to create the xml document, im using the xml class in vb.net
system.xml..
i have a problem with getting the loop logic to work the way i want it..
i.e. i want it to replace every item in xml file in the same order im reading them from the txt file...
thats what i have for now...
For i = 0 To arrList.count() - 1
xtw.WriteElementString("ORDERNO", arrList(i))
xtw.WriteElementString("custcode".ToUpper, arrList(i))
xtw.WriteElementString("custPart".ToUpper, arrList(i))
etc...
next
i want the the current index i to increment for every element .. rather than repeat every element..
can any one help ?
Thanks in advanced!
'Signo.X
Im trying to read the data from a text file into an arrayList, split them then create an xml document based on the data read from the .txt.
the .txt file could have the following data :
1
p2
3
...
to create the xml document, im using the xml class in vb.net
system.xml..
i have a problem with getting the loop logic to work the way i want it..
i.e. i want it to replace every item in xml file in the same order im reading them from the txt file...
thats what i have for now...
For i = 0 To arrList.count() - 1
xtw.WriteElementString("ORDERNO", arrList(i))
xtw.WriteElementString("custcode".ToUpper, arrList(i))
xtw.WriteElementString("custPart".ToUpper, arrList(i))
etc...
next
i want the the current index i to increment for every element .. rather than repeat every element..
can any one help ?
Thanks in advanced!
'Signo.X
Last edited: