Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't Access XML Nodes from ASP!
Message
 
À
04/06/2001 16:57:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00514847
Message ID:
00515271
Vues:
18
You better check whether the document is valid before you start using it:
IF !EMPTY(xmlDoc.parseError.reason)
   RETURN  && Error
ENDIF
>Hi all,
>
>I'm having trouble getting the most simple example to work in traversing the XML DOM tree in ASP.
>
>I have an extremely simple XML file called note which I can't list here because it won't allow the tags but it is a very simple and valid document.
>
>And the example code in ASP:
>
>Dim xmlDoc, x
>set xmlDoc=CreateObject("Microsoft.XMLDOM")
>xmlDoc.async="false"
>xmlDoc.load("note.xml")
>
>for each x in xmlDoc.documentElement.childNodes
>response.write(x.nodename)
>response.write(": ")
>response.write(x.text)
>next
>
>I'm getting object required error on line 13 - for each x in xmlDoc.documentElement.childNodes etc.
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform