This may be a dump question, so please bear with me. I have an xml
file like the following
<teacher>
<name>jkjk</name>
<phone>122</phone>
</teacher>
<student>
....
</student>
<student>
....
</student>
etc.,
In this I have one node with teacher and all the other nodes are
students. I want to use linq to get only the teacher node. Is it
possible to do it?
Thanks.
CSharper - 25 Mar 2008 15:35 GMT
> This may be a dump question, so please bear with me. I have an xml
> file like the following
[quoted text clipped - 17 lines]
>
> Thanks.
I found it, myDocument.Decendants("teacher") will help me resolve the
problem.