Link to home
Start Free TrialLog in
Avatar of troyhalsey
troyhalsey

asked on

Go to index number in XML file

I am new to xml and vb.net...so I am probably misunderstanding this process but:

Is it possible to GoTo a specific node index based on a specific nodes value?

I have a list box that is populated by an xml file.  I want to be able to select an item in the list box...and have it GoTo...the corresponding index.

My a very simplified example of my xml file looks kind of like this

<ResourceBook>
<Resources> <--------------------------------(Index1)
<Resource>
<Name>Bob</Name>
</Resource>
<Resource><--------------------------------(Index2)
<Name>Frank</Name>
</Resource>
</Resources>
</ResourceBook>

So...if they select Bob in the listbox...I want currentresourceindex to be 1....how do I do this?

Troy
ASKER CERTIFIED SOLUTION
Avatar of Mikal613
Mikal613
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of troyhalsey
troyhalsey

ASKER

Yes, everyone has told me that.  I have books on xpath....I don't know how to begin using xpath.  Can you provide with a sample of how xpath interacts with vb code?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
No objection, I will repost when I am ready to readdress the issue.  Thank you.