read xml through dataset.readxml

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hi everyone and thanks in advance for your help.

I looked everywhere. I know its easy, but I simply cant get it... Maybe its because its 4PM.

I load this xml in a dataset:


<div style="color:Black;background-color:White; <pre>
<span style="color:Blue; <<span style="color:#A31515; testapp<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; request<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; operation<span style="color:Blue; >textXML<span style="color:Blue; </<span style="color:#A31515; operation<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; ip<span style="color:Blue; >xxx.xxx.xxx.xxx<span style="color:Blue; </<span style="color:#A31515; ip<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; request<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; reply<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; code<span style="color:Blue; >300<span style="color:Blue; </<span style="color:#A31515; code<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; detail<span style="color:Blue; >success<span style="color:Blue; </<span style="color:#A31515; detail<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; available<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; app<span style="color:Blue; >app 1<span style="color:Blue; </<span style="color:#A31515; app<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; app<span style="color:Blue; >app 2<span style="color:Blue; </<span style="color:#A31515; app<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; available<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; unavailable<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; app<span style="color:Blue; >app 3<span style="color:Blue; </<span style="color:#A31515; app<span style="color:Blue; >
<span style="color:Blue; <<span style="color:#A31515; app<span style="color:Blue; >app 4<span style="color:Blue; </<span style="color:#A31515; app<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; unavailable<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; reply<span style="color:Blue; >
<span style="color:Blue; </<span style="color:#A31515; testapp<span style="color:Blue; >
[/code]

<br/>
I just to fill a combobox with "app 1" and "app 2" (those "app" who are available)
I tried with LINQ to XML, with an XMLTextReader, with a dataset.readxml, I simply cant get "app 1" and "app 2" in my combobox...

Any simple code for this one?

Many thanks in advance,

Jeff

View the full article
 
Back
Top