Thanks! That little piece of code changed the way I handle XML! Using datasets never really occurred to me..
Anyway, I have the following situation (New code always causes new problems)
<? xml version="1.0" encoding="utf-8" ?>
< Configuration>
<Cryptography>
<Key1> 710398740561298347056981239847105601928347019856029384719856 012934098</Key1>
<Key2> 091098703948701928709870981230986501928370651982706519283470 615347913</Key2>
</Cryptography>
</Configuration>
|
Now I want to retrieve the keys, so I made the following line of code:
objDataSet.Tables.Item("Cryptography").Columns("Key1").ToStr ing
|
This returns 'Key1', the name of the collum. How can I get the XML inner text, or the value? I've tried quite a few things, including the container.components, but it just won't work. Any ideas?