PDA

View Full Version : How to create dynamic tabs from xml feed?



webdev2111
17 Feb 2012, 10:36 PM
How do I go about creating dynamic tabs based on xml attribute View type="hardDisks" and displaying the childrens in a table.

<entry>
<content >
<inst:Some_data >
<atom:link href="https:" rel="self" />
<inst:View type="hardDisks">
<inst:field name="TargetObjectClass">Disk</inst:field>
<inst:field name="TargetObjectName">DISK A1</inst:field>
<inst:field name="DisplayName">DISK-Name</inst:field>
<inst:field name="MaxAvgDataRate KB/sec">50.00 KB/sec</inst:field>
<inst:field name="MaxAvgQueueDepth">50.00</inst:field>
</inst:View>
<atom:link vsc:relName="Some_LocalElement" />
</inst:Some_data>
</content>
</entry>

mitchellsimoens
19 Feb 2012, 6:41 AM
Once you get the XML back and it is decoded (via a store and xml reader?) then you just need to iterate through them, build an array of items you want to add to the tab panel and then do one add.