4 Replies Latest reply on Apr 26, 2009 6:24 AM by HowardTreisman

    xpath with another xpath between single quotes

    neptas Level 1

      Hello,

       

      Im using an xpath expression to find a node in a xml variable. In this xpath I need to equal the text part of the resolved node to the value returned from the xpath from another xml variable. The value returned from the second xpath needs to be between single quotes in the first xpath, but it is not working. I already tried this:

       

      /path_to_xml1/root_node/node[text = '/path_to_xml2/root_node/node']

      string(/path_to_xml1/root_node/node[text = '/path_to_xml2/root_node/node'])

      string(/path_to_xml1/root_node/node[text = 'string(/path_to_xml2/root_node/node')])

       

      thank you