https://issues.apache.org/bugzilla/show_bug.cgi?id=48331
Summary: XpathExtractor does not return XML string representations for a Nodeset Product: JMeter Version: 2.3.4 Platform: PC OS/Version: Windows XP Status: NEW Severity: critical Priority: P2 Component: Main AssignedTo: jmeter-dev@jakarta.apache.org ReportedBy: carl.robe...@oracle.com 1 - When I have a response that contains an XML Node named TemplateList, as in this case: <?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><doGetTemplateListResponse xmlns="http://webservices.docucorp.com/ewps/schema/2005-12-01" xmlns:xmime="http://www.w3.org/2005/05/xmlmime"> <Result>Success</Result> <TemplateList> <Story id="100100" StoryName="UL APPLICATION REJECTION NOTICE"> <Key1 id="DOCUDEMO"> <Key2 id="LIFE" /> </Key1> <Description>UL Application Rejection</Description> <Props> <Prop name="OPTIONS">N</Prop> <Prop name="CATEGORY">DOCUDEMO_LIFE</Prop> <Prop name="VERSION">Change ME</Prop> </Props> </Story> </TemplateList> <Result>Success</Result> .... 2 - And I use an XPathExtractor as a post processor with these values: Reference Name=templateList XPath query=//TemplateList Default Value=ERROR 3 - And I do not use Tidy or Namespaces, the XPathExtractor returns a blank string. 4 - I decompiled your code and modified it and now it returns the correct value. I would like to know if you can update your source code so my new change can be included in Jmeter in order to support returning string representations of XML fragments through XPath. Attached is my version of XPathExtractor.java class. 5 - I have also tested with these XPath expressions with the new class and it returns the correct results: Xpath query=//Result returns <Result>Success</Result> Xpath query=//Result/text() returns Success -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: jmeter-dev-unsubscr...@jakarta.apache.org For additional commands, e-mail: jmeter-dev-h...@jakarta.apache.org