jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hansen <tchan...@xmission.com>
Subject Re: Question on Jmeter XPATH extraction
Date Mon, 31 Jul 2006 17:01:48 GMT
>> >>> <CAPs>
>> >>>  <CAP>
>> >>>    <Keys>
>> >>>      <Key>KEY1</Key>
>> >>>      <Key>KEY2</Key>
>> >>>      <Key>KEY3</Key>
>> >>>    </Keys>
>> >>> ...
>> >>>    <Parcels>
>> >>>      <Parcel>
>> >>>        <CAPs>
>> >>>            <CAP>
>> >>>              <Keys>
>> >>>                <Key>KEY1</Key>
>> >>>                <Key>KEY2</Key>
>> >>>                <Key>KEY3</Key>
>> >>>              </Keys>
>> >>> ...
>> >
>> > Sorry, I wasn't very clear there was I.
>> >
>> > It is actually a list of CAPs and each CAP can have a list of Parcels
>> > which in turn can have a list of attached CAPs.  The application won't
>> > recurse beyond that, but what I need to get is the Keys element out of
>> > the CAP list, but not include the Keys element out of the CAPs attached
>> > to the Parcels.
>> >
> 
> If the Parcels always appear after the plain CAPs, surely you can just
> match the 1st Keys element?

That works if I'm only trying to get one - however, since multiple CAPs
are returned I'm trying to get a set of the CAPs.CAP keys but not the
CAPs.CAP.Parcels.Parcel.CAPs.CAP keys.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Mime
View raw message