Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
ASP .Net
ASP General
MSXML4 and selectSingleNode
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Marja Ribbers-de Vroed, post: 4373720"] The following is a code snippet of a classic ASP webapplication: Set l_oNode = p_oXML.selectSingleNode(l_sXPath) If (Not IsNull(l_oNode)) Then l_sValue = l_oNode.text End If According to [URL]http://www.devguru.com/Technologies/xmldom/quickref/node_selectSingleNode..html[/URL] the selectSingleNode method should return Null when no node was found for the XPath expression, but it doesn't. At least not in a way that satisfies the "Not IsNull()" test. The program always tries to execute l_sValue = l_oNode.text which obviously results in errors when the node was not found. What am I missing? [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
ASP .Net
ASP General
MSXML4 and selectSingleNode
Top