in reply to XML::XPath - node-to-xpath reverse lookup

you can supply context for the xml::xpath module, which is restrict/guarantee your xpath expression is found at desired tree level.
the hardest line to type correctly is: stty erase ^H
  • Comment on Re: XML::XPath - node-to-xpath reverse lookup

Replies are listed 'Best First'.
Re^2: XML::XPath - node-to-xpath reverse lookup
by georgeh (Initiate) on Nov 11, 2010 at 02:05 UTC

    Yes, I noticed that either of:

      /status/connector[attribute::name="http-8080"]/threadInfo/@maxThreads
      /status/connector[2]/threadInfo/@maxThreads

    Will work, but I was hoping the XPath library would give me, at least, the 2nd form of the above. Otherwise, it is difficult to determine where the data originated from.

    Thanks anyway.