Visualizzazione dei risultati da 1 a 3 su 3

Discussione: da xml a asp

  1. #1

    da xml a asp

    Ciao ragazzi ho un problemino praticamente una pagina php interrgandola mi da questo risultato :
    codice:
      <?xml version="1.0" encoding="UTF-8" ?> 
    - <cashBack id="1">
    - <programme id="796">
    - <name>
    - <![CDATA[ descrizione
      ]]> 
      </name>
      <action id="2008-11-27_144907_3409432939_87.20.42.196" cashBack="" dateAction="2008-11-27 14:56:37" dateValid="2008-11-28" statut="2" type="3" montantCom="5.000" montantVente="0.00" comID="103144" title="" /> 
      </programme>
    - <programme id="907">
    - <name>
    - <![CDATA[ descrizione
      ]]> 
      </name>
      <action id="879185FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF329393" cashBack="" dateAction="2008-11-27 14:09:31" dateValid="" statut="0" type="3" montantCom="4.000" montantVente="0.00" comID="104836" title="Vendita+" /> 
      <action id="189105FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF454393" cashBack="" dateAction="2008-12-12 16:38:32" dateValid="" statut="0" type="3" montantCom="4.000" montantVente="0.00" comID="104836" title="Vendita+" /> 
      <action id="178887FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF166393" cashBack="" dateAction="2008-12-04 20:36:53" dateValid="" statut="0" type="3" montantCom="4.000" montantVente="0.00" comID="104836" title="Vendita+" /> 
      <action id="892469FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF198393" cashBack="" dateAction="2008-11-27 11:36:41" dateValid="2008-11-28" statut="2" type="3" montantCom="4.000" montantVente="0.00" comID="104836" title="Vendita+" /> 
      </programme>
      </cashBack>
    <
    praticamente devo leggerla in asp e leggere ogni singolo nodo e fields .

    qualche esempio di codice ?

    Grazie.
    if u are junior then Hallo!!!
    if u are senior then Cool!!!
    if u are a lady then Hi baby!!!

    http://www.solamentegratis.it

  2. #2
    Ho risolto.. grazie !!
    if u are junior then Hallo!!!
    if u are senior then Cool!!!
    if u are a lady then Hi baby!!!

    http://www.solamentegratis.it

  3. #3
    Anzi quasi ...

    codice:
    set xmlDoc2 = createObject("MSXML2.DOMDocument") 
    
    	xmlDoc2.async = False
    
    	xmlDoc2.setProperty "ServerHTTPRequest", true
    
    	xmlDoc2.load("http...") 
    
    		
    		response.write xmlDoc2.selectSingleNode("//cashBack").Attributes.GetNamedItem("id").Text & "
    "
    		response.write xmlDoc2.selectSingleNode("//cashBack/programme").Attributes.GetNamedItem("id").Text & "
    "
    		response.write xmlDoc2.selectSingleNode("//cashBack/programme/name").text & "
    "
    		response.write xmlDoc2.selectSingleNode("//cashBack/programme/action").Attributes.GetNamedItem("id").Text & "
    "
    		response.write xmlDoc2.selectSingleNode("//cashBack/programme/action").Attributes.GetNamedItem("cashBack").Text & "
    "
    
    	
    	
    set xmlDoc2 = Nothing
    Però non so come ciclarlo....

    Qualche idea ?
    if u are junior then Hallo!!!
    if u are senior then Cool!!!
    if u are a lady then Hi baby!!!

    http://www.solamentegratis.it

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.