Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Using XPATH for "XML Data Manager"

Hi,
I'm using XML Data Manager to create a table from one of my REST Services.
Everything seems to work ok but I have some doubts of which XPATH commands Insight supports.

The XMLRetrieved by the service looks something like:

<values>
<name>Object01</name>
<referenceAttribute>
<name>Instance011</name>
<dataInstance>
<property>
<name>id</name>
<value>1234</value>
</property>
<property>
<name>Name</name>
<value>ABCDE</value>
</property>
</dataInstance>
</referenceAttribute>
</values>

In my XML DataMapping I want to extract one row with two columns: ID (containing 1234) and Name (containing ABCDE).

Now, if I use
/property/value I get (as expected) two rows

while, If I use something like
/property/value
or
/property/value
I get (in Framework Manager) 0 Rows.

What am I missing here? What type of Xpath syntax should I use (or which type of syntax Insight does support today)?

Thanks for the answer

Pietro

Thanks for the answer.

0 votes



One answer

Permanent link
The only thing Insight expect between "/" are the element or attribute names, not anything else.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 06 '10, 6:12 p.m.

Question was seen: 6,030 times

Last updated: Jul 06 '10, 6:12 p.m.

Confirmation Cancel Confirm