PC Review


Reply
Thread Tools Rate Thread

how do i pick up the values ?

 
 
Sean
Guest
Posts: n/a
 
      24th Jun 2003
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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reg:Macro needed to pick up only distinct values but it picks up allthe values anshu minocha Microsoft Excel Programming 4 28th Jan 2010 06:43 PM
Pick values from a row =?Utf-8?B?RGFnZmlubg==?= Microsoft Excel Worksheet Functions 10 25th Dec 2004 05:45 AM
Re: URGENT HELP: Pick out unique values from repeated values in one ce NH Microsoft Excel Worksheet Functions 2 13th Sep 2004 06:30 PM
Data Range - Why wont it pick up my series values and Xaxis Values? vankallm Microsoft Excel Charting 1 8th May 2004 06:04 AM
how do i pick up the values ? Sean Microsoft ASP .NET 0 24th Jun 2003 06:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:21 PM.