Saturday, February 28, 2015

Storing Values

Hi,



When reading and XML file I want to have the value of an Attribute to hold the value of the InnerText



For example:



<Name type="firstname" id="21">Susan</Name>

<Name type="country" id="22">Spain</Name>



So when reading the XML I have a string called firstname with the value Susuan and country has the value Spain. In php it would be "$$key = $value;" but in c# I am not sure. What I don't want to do is manually set each value and they will change.



Thanks in advance.







No comments:

Post a Comment