I'm trying to put some data from an XML file into some virtual devices. Normally i have no problem doing this but in this case I can't figure it out.
I use the following script:
It decodes http://xml.buienradar.nl
The line I'm looking for is:
The problem is that I want "b" as my device string and not "http://xml.buienradar.nl/icons/b.gif".
Any ideas?
I use the following script:
PHP Code:
sub main()
strpath = "http://xml.buienradar.nl"
Set oXML = CreateObject("Microsoft.XMLDOM")
oXML.async = False
oXML.load(strpath)
Set node_dagplus1 = oXML.selectSingleNode("buienradarnl/weergegevens/verwachting_meerdaags/dag-plus1/icoon")
hs.SetDeviceString "w10", node_dagplus1.text
End sub
The line I'm looking for is:
PHP Code:
<icoon ID="b">http://xml.buienradar.nl/icons/b.gif</icoon>
Any ideas?
Comment