reading XML into classic asp -
i new programming , new xml, know not help.....
i need read external xml file looks this
<?xml version="1.0" encoding="utf-8"?> <gesmes:envelope xmlns:gesmes="http://www.gesmes.org/xml/2002-08-01" xmlns="http://www.ecb.int /vocabulary/2002-08-01/eurofxref"> <gesmes:subject>reference rates</gesmes:subject> <gesmes:sender> <gesmes:name>european central bank</gesmes:name> </gesmes:sender> <cube> <cube time='2014-06-17'> <cube currency='usd' rate='1.3568'/> <cube currency='jpy' rate='138.40'/> <cube currency='bgn' rate='1.9558'/> <cube currency='czk' rate='27.445'/>
in asp page, read , display 2 currencies , values, have not found illustration looks this..
thanks in advance, jeroen
reading xml info using classic asp read nested nodes in xml using classic asp http://www.albofish.co.uk/2011/04/reading-an-xml-feed-using-classic-asp/
-
set oxml = server.createobject("msxml2.domdocument.4.0") oxml.loadxml(sxml) ' sxml variable containing content of xml file each onode in oxml.selectnodes("/cube/cube") scurrency= onode.getattribute("currency") srate= onode.getattribute("rate") these values here next set oxml = nil
xml asp-classic
No comments:
Post a Comment