Results 1 to 1 of 1

Thread: VB.NET: Select All Ids from Xml

Threaded View

  1. #1

    Thread Starter
    Addicted Member toytoy's Avatar
    Join Date
    Jul 2004
    Posts
    230

    VB.NET: Select All Ids from Xml

    Just to ask...

    Say i have these Xml...
    Code:
    <Books>
    <Book>
    <Title ID ="1">
    <Author>Hello</Author>
    <Reference web = "www.reference.com" topic = "In thing">
    </Title>
    </Book>
    <Book>
    <Title ID = "2">
    <Author>Thanks</Author>
    <Reference web = "www.titlebook.com" topic = "Out thing">
    </Title>
    </Book>
    </Books>
    I know that ..
    Code:
    'Get a list of books authored by Thanks
    nodeList1 = root.SelectNodes("/Books/Book[Author=""Thanks""]")
    
    'Get a book with a certain title:
    xNode = root.SelectSingleNode("/Books/Book[@Title=""Book Title Here""]")
    How to select all the id?

    Thanks
    Last edited by toytoy; Dec 3rd, 2004 at 07:55 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width