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()]")

  <HrCdhassgn_notes_1 /> 
  <HrCdhassgn_notes_2 /> 

Open in new window

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

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

this is returning a similar err.  
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.