C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » XML »

Display only the Name tag in the Treeview-C# code


Posted Date: 03 Nov 2009      Posted By: VMRK      Member Level: Silver     Points: 1   Responses: 2



My xml looks like this--
<Clients>
- <Client>
<Id></Id>
<Name>AADD</Name>
- <GBUs>
- <GBU>
<Id>Beve</Id>
<Name>Bevefdnafd</Name>
- <Contexts>
- <Context>
<Id>KF</Id>
<Name>Coooke</Name>
- <ADDictionaries>
- <ADDictionary>
<Id>S</Id>
<Name>SD</Name>
</ADDictionary>
- </ADDictionaries>
I want to display only the Tags with Name in a Treeview in the UI screen.
Is it possible ? pls help with code
i used-
XmlNodeList oNodes = dom.SelectNodes(strXPath);
XmlNode xNode = oNodes.Item(0).SelectSingleNode;
but returning the first Name alone ---- any idea???urgent





Responses

Author: Karthik    03 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

Hi,

If u want the solution. Pls give the exact XML file.

Regrads,
Karthik



Author: VMRK    03 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Dear Karthik,
please find the XML file
please help with code
its urgent



ASP.xml
Post Reply
You must Sign In to post a response.
Next : Parse xml attribute
Previous : How to retrive an value from xml for a particluar node and again update the xml
Return to Discussion Forum
Post New Message
Category: XML

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use