I have several JTables and JLists with custom models that return data
from a dom4j Document. In a couple of these cases, I need to be able to
easily move nodes from once place to another or insert a node.
Detaching nodes is easy enough, but I've not found a good solution for
inserting or moving a node. Like this example below. Say I wanted to
insert a new <Row> structure through an insert feature in my JTable
between BBB and CCC. Or detach BBB and move it before AAA.
<Root>
<Row>
<data>AAA</data>
</Row>
<Row>
<data>BBB</data>
</Row>
<Row>
<data>CCC</data>
</Row>
<Row>
<data>DDD</data>
</Row>
</Root>
It is almost like there should be a Document.selectNodes(//Row) that
returns a backed list. The only way to date I've found to get a backed
list didn't work- it had too much stuff in it. Couldn't get just the
"Row" elements. So, for now I'm stuck almost completely rebuilding
documents when a user requests a move or insert. Can someone help me
out here!?!
Thanks, Brian
-------------------------------------------------------
This sf.net email is sponsored by: Are you worried about
your web server security? Click here for a FREE Thawte
Apache SSL Guide and answer your Apache SSL security
needs: http://www.gothawte.com/rd523.html
_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-user
- Re: [dom4j-user] Re: [dom4j-dev] RE: Thread S... Jim Brain
- Re: [dom4j-user] Re: [dom4j-dev] RE: Thre... Dennis Sosnoski
- Re: [dom4j-user] Re: [dom4j-dev] RE:... Jim Brain
- Re: [dom4j-user] Re: [dom4j-dev] RE: Thre... James Strachan
- RE: [dom4j-user] Re: [dom4j-dev] RE:... David Hooker
- Re: [dom4j-user] Re: [dom4j-dev]... James Strachan
- RE: [dom4j-user] RE: [dom4j-dev] RE: Thread Safety David Hooker
- Re: [dom4j-user] RE: [dom4j-dev] RE: Thread Safet... James Strachan
- Re: [dom4j-user] RE: Thread Safety Brian W. Young
- Re: [dom4j-user] RE: Thread Safety James Strachan
- RE: [dom4j-user] inserting/moving nodes? Brian W. Young
- RE: [dom4j-user] inserting/moving nodes? Steen Lehmann
- Re: [dom4j-user] inserting/moving nodes? Brian W. Young