Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XmlDocument, XmlNode and XmlNodelist 1

Status
Not open for further replies.

euntair

Programmer
Sep 13, 2007
53
US
XmlNode pages = xd.SelectSingleNode("system-index-block/system-folder");

XmlNodeList xnl = pages.SelectNodes("//system-folder|//system-page");

How do I stop from getting parent items when I do a greedy search through the children of a node?
 
please provide more information. what is the xml schema? what results do you expect? What results are you actually getting?

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
>XmlNodeList xnl = pages.SelectNodes("//system-folder|//system-page");
[tt]XmlNodeList xnl = pages.SelectNodes("[red].[/red]//system-folder|[red].[/red]//system-page");[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top