Search XML / Display Value

Posted on 2004-11-26
Last Modified: 2012-05-05
Lets say I have an xml like this:

<?xml version='1.0' encoding='UTF-8'?>

How can I search for "URL" in all "Key" and find the Value1 ""

or search for "Mail" in all "Key" and find ""

or search for 2 in all "ID" and find Value1 "" or the "Key" etc.

Eg I want to search for a certain value and display another value in the same ConfigEntries element.

By the way the xml is in a dataset.
Question by:netslt
    1 Comment
    LVL 3

    Accepted Solution

    what you need is XPath

    Here is a really useful tutorial that goes through how it works:

    This shows how to use XPath in Visual Basic .NET apps:;en-us;317018

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now