how to bind xpath results to a dataset?

Discussion in 'ASP .Net' started by Matthijs Blaas, Jan 21, 2004.

  1. Hi all,

    I have an xml document loaded, from which I want to select only a certain
    node. I want to bind that selected node to an repeater, but I can't find out
    how to populate a dataset with the result from the xpathnodeiterator (see
    example code)

    dim doc as new xmldatadocument
    doc.load("test.xml")
    dim nav as xpathnavigator
    nav = doc.createnavigator()
    dim browser as xpathnodeiterator = nav.select("descendant::test1/test2")
    'bind the result of browser.current a the dataset ?

    Could anyone please help me out here?

    Thanks!

    Thijs
    Matthijs Blaas, Jan 21, 2004
    #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. mr2_93
    Replies:
    1
    Views:
    3,593
    mr2_93
    Oct 2, 2005
  2. moi
    Replies:
    0
    Views:
    5,721
  3. Replies:
    0
    Views:
    589
  4. Ken Fine
    Replies:
    3
    Views:
    528
    Steven Cheng [MSFT]
    Jul 23, 2008
  5. Matthijs Blaas

    how to bind xpath results to a dataset?

    Matthijs Blaas, Jan 21, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    143
    Matthijs Blaas
    Jan 21, 2004
Loading...

Share This Page