S
Sean
Hi
I have this XML file, and i am not sure how do i read this xml file and read it to an arraylist, for which i use to fire some SQL statements.
I want to be able to pick only xml attributes, say, which belong to Section="two-4" and put them into an arraylist and similar for the rest of the Section attributes.
i had got the code below working, till the time, i had to change the xml file.
<cashier>
<tag Section="one-4" param1="1" param2="10100000" param3="1" />
<tag Section="two-4" param1="3 param2="asfd" param3="6/23/2003 08:00 AM" />
<tag Section="three-4" param1="2" param2="1" param3="CHECK/MO" param4="24" />
<tag Section="two-4" param1="3 param2="asfd" param3="6/23/2003 08:00 AM" />
</cashier>
Do While (reader.Read())
' I am not sure, how to pick up only two-4
If reader.Name.ToString = "two-4" Then
Response.Write("inside")
While (reader.MoveToNextAttribute())
workArray.Add(reader.Value)
End While
worknodes = worknodes + 1
Please Help.
Any help/suggestions/hints will be greatly appreciated.
Thank You
-- Sean
I have this XML file, and i am not sure how do i read this xml file and read it to an arraylist, for which i use to fire some SQL statements.
I want to be able to pick only xml attributes, say, which belong to Section="two-4" and put them into an arraylist and similar for the rest of the Section attributes.
i had got the code below working, till the time, i had to change the xml file.
<cashier>
<tag Section="one-4" param1="1" param2="10100000" param3="1" />
<tag Section="two-4" param1="3 param2="asfd" param3="6/23/2003 08:00 AM" />
<tag Section="three-4" param1="2" param2="1" param3="CHECK/MO" param4="24" />
<tag Section="two-4" param1="3 param2="asfd" param3="6/23/2003 08:00 AM" />
</cashier>
Do While (reader.Read())
' I am not sure, how to pick up only two-4
If reader.Name.ToString = "two-4" Then
Response.Write("inside")
While (reader.MoveToNextAttribute())
workArray.Add(reader.Value)
End While
worknodes = worknodes + 1
Please Help.
Any help/suggestions/hints will be greatly appreciated.
Thank You
-- Sean