0 Replies Latest reply on May 11, 2006 2:53 PM by rwest

    Parent node of an XML Search

      I have been wrecking my brain on this and I am sure that it is possible I am just not sure what the proper search expression is.

      If I have an XML document like this:

      Lets say I am looking for the parent of the item element that has a linkurl element with value of "bar" I would expect to write something like this:

      <cfset itemArray = xmlSearch(xmlDoc, "ancestor:://item[linkurl='bar']")>

      I know that for this particular instance I could access it directly but in my case there may be many <item> tags nested so I want it to be dynamic so that I can continue to walk back up the tree.

      Any help will be appreciated