hibbidiji
asked on
xml -> dataset from web service
I have a web service that is pumping out XML like this:
<?xml version="1.0" ?>
<record>
<servername>server.host.co m</servern ame>
<app1>15</app1>
<app2>25</app2>
<mysql>36</mysql>
</record>
I have a dbgrid that I would like to display this information in. each <record> would be a row in the grid. my columns would be server,app1,app2,mysql and the last 3 would have a % behind them. (basically cpu usage.. several of these apps have been known to go a little nuts.
Firstly, is there an easy solution to this, or am I going in the wrong direction? I barely know enough indy to get the data back in the form of a tstringlist, so please be kind :) If this question would invite a response obviously out of the scope of EE, I would appreciate some kind of pointer to a tutorial or somesuch Thanks!
<?xml version="1.0" ?>
<record>
<servername>server.host.co
<app1>15</app1>
<app2>25</app2>
<mysql>36</mysql>
</record>
I have a dbgrid that I would like to display this information in. each <record> would be a row in the grid. my columns would be server,app1,app2,mysql and the last 3 would have a % behind them. (basically cpu usage.. several of these apps have been known to go a little nuts.
Firstly, is there an easy solution to this, or am I going in the wrong direction? I barely know enough indy to get the data back in the form of a tstringlist, so please be kind :) If this question would invite a response obviously out of the scope of EE, I would appreciate some kind of pointer to a tutorial or somesuch Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
BRILLIANT response. the most concise and helpful I've ever seen on this site. Within 10 minutes of reading this I was done! I am opening a NEW question for another portion in the same project. I hope you will have time to look at it. Thank you very very much!
thanks :)
Bogdan
Bogdan
is there a way to do this without having a the "'ToDp.xtr" file on Disk ?
ASKER