3
Answers

read element and stringElemnt from XMLfile

Ask a question
batel hodefi

batel hodefi

14y
3.1k
1

I have a XML file like this:
<tok>
   <Name>jone</Name>
   <LastName>kon</LastName>
</tok>
 
but the problem is:
in order to bring "jone" I use : xmlReader.ReadElementString()
but if I now want to bring Name I can't use xmlReader.Name becuase it gives me the next Elemnt - LastName..
How can I read an <...> if I already read the string Element?

Answers (3)