XML parsing - get elements inside a specific path -

Posted on 2007-07-20
Last Modified: 2010-08-05
Hi there,
I would like to read the elements in "\SETTINGS\OSRS" using XmlDocument with
How read ONLY elements inside "OSRS"?

<Groups>Authenticated Users, Users</Groups>
<Groups>Authenticated Users, Users</Groups>
<Permissions>ListDirectory, ReadAndExecute</Permissions>
<Groups>Authenticated Users, Users</Groups>
Thanks in advance!
Question by:nahumba
    LVL 46

    Accepted Solution

    Hi nahumba,

    Like this....

            Dim xmlDoc As New Xml.XmlDocument
            For Each nd As Xml.XmlNode In xmlDoc.DocumentElement.SelectNodes("OSRS")(0)
                MsgBox(nd.Name & " = " & nd.InnerText)



    Author Comment

    Thank you so much Wayne! Works great!


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK ( for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
    Introduction In my previous article ( I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    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

    15 Experts available now in Live!

    Get 1:1 Help Now