Hey all,
I’m using sendHubCommand to send a HTTP GET to my local device, and then parse the XML it returns. So I now have my XML content in msg.body, which looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<MediaContainer size="1">
<Server name="LivingRoom" host="192.168.1.128" address="192.168.1.128" />
<Server name="Bedroom" host="192.168.1.129" address="192.168.1.129" />
</MediaContainer>
I need to be able to loop through each server element and get the ‘address’ attribute. Could anyone lend a hand?