Cannot get repeating data to work
Posted: Mon May 23, 2011 7:57 pm
I am having trouble getting repeating data to work.
Stepping through the code, the xpath returns 0 repeating elements from my custom xml, however if I upload my xml and xpath expression to one of the XPath test sites, it returns 3 elements.
My data looks like:
<accountInstruction>
<securities>
<security>
<security>
<security>
</securities>
</accountInstruction>
And my repeat xpath is: /accountInstruction[1]/securities[1]/security
I am using docx4j version 2.6.0.
I am not an XPath expert, any suggestions?
Thanks,
Andrew
Stepping through the code, the xpath returns 0 repeating elements from my custom xml, however if I upload my xml and xpath expression to one of the XPath test sites, it returns 3 elements.
My data looks like:
<accountInstruction>
<securities>
<security>
<security>
<security>
</securities>
</accountInstruction>
And my repeat xpath is: /accountInstruction[1]/securities[1]/security
I am using docx4j version 2.6.0.
I am not an XPath expert, any suggestions?
Thanks,
Andrew