Ok, its bad form to follow up on one's own post. So, as a penance I will sign up for (trying) to make XMLTableModel updateable.
Now that I've found this thread on the Archive, James suggested using XPath to find the Node for the cell under edit. I'm very new to all this, but if I understand correctly, I would use the getColumnXPath(int columnIndex) from the XMLTableModel definition to get the XPath object. Then, assuming there were more than one matching Nodes, use the table row index to find the index into the Node list. ( or perhaps in this case the XPath returned would be something like "/AAA/BBB[4]" ? ). I'll start on this tomorrow. Kind regards, John. -- Texas Instruments Inc Product Development tel:214 480 4253 PO BOX 660199 MS: 8645 FORE/A-3101 fax:214 480 4401 12500 TI Boulevard Dallas, TX 75266-0199 nawk nawk, Who's there ? Aho, Weinberger and Kerninghan. John Sharp wrote: > > Hello, Some time back there was discussion on making > the document updateable throught the XMLTableModel. > Is any work being done on this ? > > I'm about to start a project where I need to edit XML > through swing table/tree components. I may be able > to contribute - if pointed in the right direction. > > I also need the ability through XPath to show different > views of the data. The XML source will be fairly large > and I was thinking it may be possible to build the > document once and then get different document "views" > from using XPath on the original document ? > > I'm very new to XML etc, but have JAVA experience. > > John. > -- > Texas Instruments Inc Product Development tel:214 480 4253 > PO BOX 660199 MS: 8645 FORE/A-3101 fax:214 480 4401 > 12500 TI Boulevard Dallas, TX 75266-0199 > nawk nawk, Who's there ? Aho, Weinberger and Kerninghan. > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > dom4j-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/dom4j-user ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user