how do i pick up the values ?

Discussion in 'ASP .Net' started by Sean, Jun 24, 2003.

  1. Sean

    Sean Guest

    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
    Sean, Jun 24, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jerry Camel

    Pick List Functionality

    Jerry Camel, Feb 19, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    730
    Martin Dechev
    Feb 19, 2004
  2. =?Utf-8?B?SXNoYWFu?=

    pick Date format from Opearating System

    =?Utf-8?B?SXNoYWFu?=, Oct 18, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    3,161
    Scott Allen
    Oct 20, 2004
  3. Max
    Replies:
    4
    Views:
    8,932
    David Browne
    Nov 18, 2004
  4. Benny Ng
    Replies:
    1
    Views:
    632
    Benny Ng
    Mar 30, 2006
  5. tom c
    Replies:
    5
    Views:
    382
    tom c
    Nov 1, 2006
Loading...

Share This Page