display details xml entry

xml Australia
  • 15 years ago

    I want to display the details of a xml entry using the selected id attribute in a asp.net page. The xml is as follows


    <guests>
    <guest id="1" displayed="1" date="2006/4/20">
       <fname>Ted</fname>
       <lname>Smith</lname>
       <country>USA</country>
       <email>[email protected]</email>
       <message>Some message..............</message>
     </guest>
     </guests>


    I'm looking for vb code to get each of the values for the entry with id=1 and display them in textboxes.
    I've tried using xmldocument, xpathdocument etc but I'm missing something.


    Any help will be appreciated.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“The most exciting phrase to hear in science, the one that heralds new discoveries, is not 'Eureka!' but 'That's funny...'” - Isaac Asimov