Parse xml string and return value to textbox C#

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Here is my xml string
<pre class="prettyprint <Fields>
<Field>
<Name>FULLNAME</Name>
<Value>Melendez, Carlos A. (PR01)</Value>
</Field>
<Field>
<Name>SBG</Name>
<Value>AERO</Value>
</Field>
<Field>
<Name>SBU</Name>
<Value>ITA</Value>
</Field>
<Field>
<Name>REGION</Name>
<Value>CANLA</Value>
</Field>
<Field>
<Name>SITE</Name>
<Value>PR08</Value>
</Field>
<Field>
<Name>NAME</Name>
<Value>Carlos</Value>
</Field>
<Field>
<Name>LAST NAME</Name>
<Value>Melendez</Value>
</Field>
<Field>
<Name>DEVICE</Name>
<Value>Blackberry</Value>
</Field>
<Field>
<Name>CARRIER</Name>
<Value>AT&amp;T</Value>
</Field>
<Field>
<Name>CONTRACT END DATE</Name>
<Value>Friday, March 16, 2012</Value>
</Field>
<Field>
<Name>STATUS</Name>
<Value>Active</Value>
</Field>
<Field>
<Name>ACCOUNT</Name>
<Value>121321321</Value>
</Field>
<Field>
<Name>PLAN</Name>
<Value>Null</Value>
</Field>
<Field>
<Name>COMMENT</Name>
<Value>None</Value>
</Field>
<Field>
<Name>SBE</Name>
<Value>N/A</Value>
</Field>
<Field>
<Name>MANAGER EMAIL</Name>
<Value>Chris.Nguyen@Honeywell.com</Value>
</Field>
<Field>
<Name>MANAGER NAME</Name>
<Value>Nguyen, Chris</Value>
</Field>
</Fields>[/code]
this xml string is saved in an SQL database.... <br/>

I can pull the string... i can read through it... but i cant get the values to show....
what i need to do is pull out the Contract end date... and the Account number and display these values in a textbox and then parse the date time property to show it in a dateTimePicker
<hr class="sig Loving life since 1981 Preston Lambeth

View the full article
 
Back
Top