I'm using kettle and trying to load both the attribute and node values from an xml document.
<Colors>
<Color code="123">blue</Color>
<Color code="234">black</Color>
<Color code="456">green</Color>
</Colors>
If I set the loop XPath to Colors I will only get one row but it will read both the code and the value.
example:
Code | Color
123 | blue
But if I set the XPath to the Color I will get 3 rows, but it will not read the value for each item.
example:
Code
123
234
456
How do I read all elements and both the attribute and node value in one pass?
Thanks.