Forum Discussion
M_McDonald
16 years agoSuper Contributor
1) getNodeValues() returns a list of Strings, not nodes; put a log.info in the for() loop to be sure handle is the value you expect.
2) setNodeValue() will only set the value of existing nodes that match the xpath, not add new ones.
3) Wouldn't your loop only set one node value repeatedly? I think you would have to index the xpath :
//ws:addFromDocuments/srcDocumentHandleList[1], etc.
On the other hand I may be wrong.
2) setNodeValue() will only set the value of existing nodes that match the xpath, not add new ones.
3) Wouldn't your loop only set one node value repeatedly? I think you would have to index the xpath :
//ws:addFromDocuments/srcDocumentHandleList[1], etc.
On the other hand I may be wrong.