Community
Participate
Working Groups
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. The problem can be demonstrated on the XML part below. When trying to select <value> element using position predicate after using attribute predicate for <custom id="2">, the XPath does not work as expected: XML: <item> <customs> <custom id="2"> <name>Rick</name> <values> <value>3</value> <value>4</value> </values> </custom> </customs> </item> /customs/custom[1]/values/value[1] returns "3" /customs/custom[@id="2"]/values/value[1] does not return anything expected: 3, since points at the same element as previous query /customs/custom[@id="2"]/values/value returns "3"
To reproduce: Create XML data source over an XML that contains structure similar to the one i described Start creating data set. In column mapping, try selecting an element using the described XPath, with attribute predicate and then position Click "Show sample data" to check what gets returned
Created attachment 194244 [details] test xml
Fixed in 3.7.0 M7