I am creating a ping application for a school with XML full of URLs. I lost an hour due to XmlNode.Value , getting a null value.
Then I changed it to InnerText and it worked fine.
Now I was wondering what the difference is, since MSDN says .Value returns the value of a node and InnerText returns the concatenated values โโof the node and all its child nodes.
Can someone explain this to me please?
<sites> <site> <url>www.test.be</url> <email>test@test.be</email> </site> <site> <url>www.temp.be</url> <email>temp@temp.be</email> </site> <site> <url>www.lorim.ipsum</url> <email>interim.address@domain.com</email> </site></sites>
Tom Kerkhove Oct 24 '11 at 14:46 2011-10-24 14:46
source share