XML Data source - column mapping - xpath problem with attribute and position predicates [message #660426] |
Fri, 18 March 2011 07:43  |
Eclipse User |
|
|
|
Hello,
I have XML data source and i am creating data set. Part of the xml that i want to bind to columns causes troubles to me or to BIRT.
I have XML containing number of "customfield" elements like the one below. They are differentiated by "id" attribute. They can also contain number of values (customfieldvalue element) which have no id and differ just in position and text().
<customfields>
<customfield id="cf10062">
<customfieldname>Tester</customfieldname>
<customfieldvalues>
<customfieldvalue>sipe01</customfieldvalue>
<customfieldvalue>sipe02</customfieldvalue>
</customfieldvalues>
</customfield>
...
</customfields>
The problem i face is that BIRT has problem with XPATH query that contains both attribute predicate and position.
/customfields/customfield[1]/customfieldvalues/customfieldva lue[2]
==> returns "sipe02"
/customfields/customfield[@id="cf10062"]/customfieldvalues/customfieldvalue[2]
==> returns something strange (squares and empty characters? not sure)
Can anyone tell what is wrong?
Thanks a lot,
Silvestr
[Updated on: Fri, 18 March 2011 11:59] by Moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.08122 seconds