Thanks David,<br />next challenge i have with the same problem is determining how many lines there are - any ideas on this <br /><br />xfa.record.node.length tells me all the lines in the xml file and not just for the repeating tag i am interested in<br /><br />xfa.record.nodes.namedItem('line") gives me first one, but I can't get the next one<br /><br />xfa.record.nodes.item(var).value - gives me the contents of the lines but not the tag names<br /><br />all I really want to do is get each of the <line> data into an array so I can work with them
To get all the line nodes you can use the resolveNodes method instead, which returns a collection of nodes instead of a single node returned by resolveNode
var oLineNodes = xfa.datasets.data.TestData.resolveNodes("line[*]");
oLineNodes.length will give you the number of elements in the collection and then use item to access each one using a for loop
EG:
for(var i=0; i<oLineNodes.length; i++)
{
??? = oLineNodes.item(i).value;
}
where ??? is something you want to do with the value.