batel hodefi

batel hodefi

  • NA
  • 50
  • 0

read element and stringElemnt from XMLfile

Dec 31 2009 11:30 AM

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)