commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vaibhav kumthekar (JIRA)" <>
Subject [jira] Created: (JXPATH-137) Issue while getting value for array element
Date Mon, 24 Aug 2009 08:52:59 GMT
Issue while getting value for array element

                 Key: JXPATH-137
             Project: Commons JXPath
          Issue Type: Bug
            Reporter: vaibhav kumthekar

Dear Sir,
I am subscribed user.
I am using JXPath and facing an issue while getting a value for array element.
Scenario: My XML is like this:
To get the value for each testRec element, I would iterate through the testRecArray element
using xpath context.iterate("/test/testRecArray/testRecArray") and get the iterator.
But, I am getting null for this xpath. I am using the same pattern for other XMLs and it works
fine for me. e.g.
It works for the /test/testRecList/testRecArray xpath.
I can smell that the problem could be because of the element which holds array elements have
'Array' in its name. JXPath internally could be checking for such names and as this is not
an array element but parent element, path is unexpected and returns me null.
Please advise what should be xpath in such cases.
Thanks and regards,

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message