On 03/09/07, Florent Georges <[EMAIL PROTECTED]> wrote: > sebb wrote: > > Hi > > > The application is JMeter - we have an XPath extractor > > which can be used to extract items from an XML document > > sample - there is no stylesheet involved, just the XML > > document and the XPath query. > > If the expression is generated, I would suggest to use *[local-part() > = '...' and namespace-uri() = '...']. Using local-part() should not be > an issue, neither for readibility since it is generated or for > efficiency as pattern matching is not involved (but for this last point > I'm just guessing).
The expression is entered by the user, which is why it is a pain to use the work-round. I suppose JMeter could parse ns:item to generate the expression internally, but that could quickly get very tricky for more complicated expressions. > But that way your expression will be more robust. Be careful about > cases like the following for instance (note the same prefix rebound): > > <pr:elem1 xmlns:pr="uri 1"> > <pr:elem2 xmlns:pr="uri 2"/> > </pr:elem1> Indeed, that is one case where using the URI is better. > BTW, as it is a general XPath question, I suggest you to post on > Mulberry's XSL List. You'll get more advised ideas I think. OK. > Regards, > > --drkm > > > > > > > > > > > > > > > > > > > > > > > > > > > ______________________________________________________________________________ > Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de mail ! > >