Cool, I just downloaded the latest nightly build and sure enough there is an 
xpath extractor post processor. Is there any plans to add the multiple 
matching functionality that you get with the regular expression extractor?

For instance, if you use wild cards in an xpath expression which then returns 
multiple values. (e.g /node/node[*]/name[contains(.,"Fred")]) could easily 
return multiple values. In this case what value would you get? I guess I 
could wrapper this inside a loop with a counter to do this myself but I 
really like the multiple matching stuff in the regular expression extractor.

Thanks...

On Wednesday 29 March 2006 14:34, sebb wrote:
> There is an XPath Extractor in the forthcoming 2.1.2 version - if you
> want to try it out, download a recent nightly build.
>
> You need both the _bin and _lib archives; unpack them into the same
> directory structure.
>
> It's documented in the component_reference page.
>
> Please let us know if this fits your needs or not.
>
> S.
>
> On 29/03/06, Garry L. Thompson <[EMAIL PROTECTED]> wrote:
> > I am testing a web API that's passing all the information around via xml.
> >  A post processor xpath expression extractor would be very useful. It
> > would work basically like the regular expression extractor and setup the
> > results variable the same so as to work with the foreach controller.  Any
> > chance of this sometime in the near future? There is already all of the
> > xpath stuff there from the xpath assertion.  It looks like my only other
> > alternative is to use the javax. xpath stuff in beanshell.  Just thought
> > I would ask before diggin into this.
> >
> > Also, if anyone has some sample beanshell/xpath examples they would be
> > willing to post it would be appreciated.
> >
> > Thanks...
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to