XML XPATH last record error

This err comes up in classic asp when I attempt to retrieve the last record using last()

msxml3.dll error '80004005'
Unknown method. /xml/user_vars/*[-->last()<--]
/common/wfmultirowtool.inc, line 280

attempt 1:
lastnode = wf_WebFormXML.selectSingleNode("/xml/user_vars/*[last()]")

attempt 2: 
lastnode = wf_WebFormXML.selectSingleNode("/xml/user_vars/[last()]")

<xml>
<user_vars>
  <HrCdhassgn_notes_1 /> 
  <HrCdhassgn_notes_2 /> 
  </user_vars>
  </xml>

Open in new window

KeithMcElroyAsked:
Who is Participating?
 
zc2Commented:
do you call
wf_WebFormXML.setProperty "SelectionLanguage", "XPath"
before calling SelectSingleNode ?

0
 
KeithMcElroyAuthor Commented:
set lastnode = wf_WebFormXML.SelectSingleNode("/xml/user_vars/[contains(@id, '" & table  & "']")

this is returning a similar err.  
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.