<Contacts>
<Node>
<ID>123</ID>
<Name>ABC</Name>
</Node>
<Node>
<ID>124</ID>
<Name>DEF</Name>
</Node>
</Contacts>
Here i want to get Element name(Tag Name) such as Contacts,*Node*,ID,*Name* using linq to xml concept.What should i do for that.
Try this:
You will get:
If you want to get the name list of first node