Código:
<?xml version="1.0" encoding="iso-8859-1"?> <weather> <current> <location>1</location> <temp>temp1</temp> <cod>cod1</cod> </current> <current> <location>2</location> <temp>temp2</temp> <cod>cod2</cod> </current> <current> <location>3</location> <temp>temp3</temp> <cod>cod3</cod> </current> </weather>
Quiero extraer solamente los nodos current/temp y current/cod de current donde location sea = x
Queria hacer algo asi
Código:
Set objXMLDoc = Server.CreateObject("Microsoft.XMLDOM") objXMLDoc.async = False objXMLDoc.load("prueba.xml") Set Node = objXMLDoc.SelectSingleNode("weather/current[location=2]").text