Re: [dom4j-user] Xpath for table model node update

2002-11-15 Thread John Sharp
Typical, I bang my head all afternoon, post, then it finally dawns on me - I now have it sort of working. However, could someone in the know tell me if this is the "correct" approach ? I'm especially not sure about the "node(0)" line. public void setValueAt(Object o, int row, int col) { O

[dom4j-user] Xpath for table model node update

2002-11-15 Thread John Sharp
Hi, I'm following from an earlier suggestion to make XMLTableModel updates. The method was to use XPath to map back from the table row/col to the Node at this location in the document. The following code does update the document (via the node handle) but at the wrong place - always at the secon