C
C# newbie
Hi Group,
Assume we have an xml as:
<GrandFather>
<Father>
<Son/>
<GrandSon>'Tim'</GrandSon>
</Son>
</Father>
</GrandFather>
How can I get the type of every element during a search by XPath query in
above xml file ? Let's say I've searched for "Tim" and found it. During
every step I need to find out the type of elemet. I need something like:
if (Current Element is a Text)
do this // this would let me to do some process for the text
container
else
do that // ignore the predefind process since it's not a text
container
Your help would be appreciated greatly.
Thanks
Newbie
Assume we have an xml as:
<GrandFather>
<Father>
<Son/>
<GrandSon>'Tim'</GrandSon>
</Son>
</Father>
</GrandFather>
How can I get the type of every element during a search by XPath query in
above xml file ? Let's say I've searched for "Tim" and found it. During
every step I need to find out the type of elemet. I need something like:
if (Current Element is a Text)
do this // this would let me to do some process for the text
container
else
do that // ignore the predefind process since it's not a text
container
Your help would be appreciated greatly.
Thanks
Newbie