BI Publisher reference next element inside for-each
Hello!Having this XML as example:
<A>
<C>C1</C>
<A/>
<A>
<B>B1</C>
<C>C2</C>
<A/>
<A>
<B>B2</B>
<C>C3</C>
<A/>
We want to print for each A:
- B1, C1
- B2, C2
- C3
So the question is, is there any way to reference the next element inside a for-each loop?
Because for the first A, we only have C1 but in the next A we there have B1.
I know a simple solution could be build the XML properly, but this is just another question.
Regards
<A>
<C>C1</C>
<A/>
<A>
<B>B1</C>
<C>C2</C>
<A/>
<A>
<B>B2</B>
<C>C3</C>
<A/>
We want to print for each A:
- B1, C1
- B2, C2
- C3
So the question is, is there any way to reference the next element inside a for-each loop?
Because for the first A, we only have C1 but in the next A we there have B1.
I know a simple solution could be build the XML properly, but this is just another question.
Regards
0