Forum Discussion

L_jiang's avatar
L_jiang
New Contributor
13 years ago

Get the exception error when using selectSingleNode to get the request

When i try to get the request data and locate the special element,  i got the error :  



Set Doc = Request.SOAPRequest.DOMBody


Set Doc = Doc.documentElement


' Finds the element you want to change


log.Message(Doc.xml)


 


Set Elem = Doc.selectSingleNode("//child::*[name()='star:DocumentID']")


got the error here :



An exception occurred in the "Testing" unit at line 37:

msxml3.dll

Expected token 'eof' found ':'.



//child-->:<--:*[name()='star:DocumentID'

1 Reply

  • Anonymous's avatar
    Anonymous

    Hi Li,





    It looks like the MSXML version (v. 3) installed on your machine doesn't support XPath axes. Install the MSXML 4.0 version on your computer and check if you get the same error when executing the script.