[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 488
  • Last Modified:

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

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

this is returning a similar err.  
0
 
zc2Commented:
do you call
wf_WebFormXML.setProperty "SelectionLanguage", "XPath"
before calling SelectSingleNode ?

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now