Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting the presence of a node
Message
 
À
23/08/2004 17:54:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00935769
Message ID:
00935777
Vues:
16
Hi Michael,

Try...
*loXML.SetProperty("SelectionLanguage","XPath")
loNode=loXML.documentElement.selectNodes('rss/channel/lastBuildDate')
IF loNodes.Length=0
   * Node not exist
ENDIF

MartinJ

>Using the XML object, when I do this:
>
>
>lcDate=loXML.SelectSingleNode('rss/channel/lastBuildDate').Text
>
>
>Is there a way to detect if the node exist before executing that command? By that, it would avoid an error to occur if it doesn't exist.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform