I am attempting to pull data from a SQL database and I see a field that contains XML data. In the application, many fields are tied to this one field in the SQL database. If no data is filled out in let's say 6 fields, this XML type field within the SQL DB just shows:
<ArrayOfKeyValueOfstringstring xmlns:i=" xmlns=" />
However, if one of more fields are filled out in the application, a KEY and VALUE tag will appear and display data. In the following example, two possible fields are listed within the array.
<ArrayOfKeyValueOfstringstring xmlns:i=" xmlns=" <KeyValueOfstringstring>
<Key>EventSummary</Key>
<Value>"The event will be held in 3 days"</Value>
</KeyValueOfstringstring>
<KeyValueOfstringstring>
<Key>disposition</Key>
<Value>{"code":"00","description":"SOON"}</Value>
</KeyValueOfstringstring>
</ArrayOfKeyValueOfstringstring>
In the example above, I need to isolate each field as it's own. Is there an easy way to isolate a display the Event Summary Key value of "The event will be held in 3 days" and then the Disposition Key value. Also, the description value, not the code value of the Disposition key is what I need to display.
TIA
<ArrayOfKeyValueOfstringstring xmlns:i=" xmlns=" />
However, if one of more fields are filled out in the application, a KEY and VALUE tag will appear and display data. In the following example, two possible fields are listed within the array.
<ArrayOfKeyValueOfstringstring xmlns:i=" xmlns=" <KeyValueOfstringstring>
<Key>EventSummary</Key>
<Value>"The event will be held in 3 days"</Value>
</KeyValueOfstringstring>
<KeyValueOfstringstring>
<Key>disposition</Key>
<Value>{"code":"00","description":"SOON"}</Value>
</KeyValueOfstringstring>
</ArrayOfKeyValueOfstringstring>
In the example above, I need to isolate each field as it's own. Is there an easy way to isolate a display the Event Summary Key value of "The event will be held in 3 days" and then the Disposition Key value. Also, the description value, not the code value of the Disposition key is what I need to display.
TIA