Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Detecting the presence of a node
Message
 
To
23/08/2004 17:54:19
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00935769
Message ID:
00935777
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform