Just to ask...
Say i have these Xml...
I know that ..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>
How to select all the id?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""]")
Thanks




Reply With Quote