retrieving XML attributes and populating a grid.
Hi,
I have an exported XML file of the format
<DeviceData>
<DeviceSet>
<Devices>
<Device host="host1">
<DeviceAttribute Name="IPAddress" type="String">
192.168.1.1
</DeviceAttribute>
<DeviceAttribute Name="IPNetmask" type="String">
255.255.255.0
</DeviceAttribute>
</Device>
<Device host="host2">
</Device>
</Devices>
</DeviceSet>
</DeviceData>
I am trying to Populate a Grid with the 1st column being the host attribute, the second column being the IP Address and the third being the Netmask.
But... I dont understand how to populate the grid with these values given the above XML format, especially when it comes to getting the "host" & "Name" attributes.
Can anyone help. I'd be really gratefull.
Many thanks
I have an exported XML file of the format
<DeviceData>
<DeviceSet>
<Devices>
<Device host="host1">
<DeviceAttribute Name="IPAddress" type="String">
192.168.1.1
</DeviceAttribute>
<DeviceAttribute Name="IPNetmask" type="String">
255.255.255.0
</DeviceAttribute>
</Device>
<Device host="host2">
</Device>
</Devices>
</DeviceSet>
</DeviceData>
I am trying to Populate a Grid with the 1st column being the host attribute, the second column being the IP Address and the third being the Netmask.
But... I dont understand how to populate the grid with these values given the above XML format, especially when it comes to getting the "host" & "Name" attributes.
Can anyone help. I'd be really gratefull.
Many thanks
Greg
February 22,