I want to introduce Cuenta nodes between other Cuenta nodes, inside Cuentas principal structure. Something like this
<?xml version="1.0" encoding="UTF-8"?> <Cuentas> </Cuentas>
The probles is that I want to have something like the first code in my aplication, and when I call to one function introduce inside the structure the new nodes. If I call 1 time only one node, if I call 3 times 3 nodes...
<?xml version="1.0" encoding="UTF-8"?> <Cuentas> <Cuenta></Cuenta> <Cuenta></Cuenta> </Cuentas>
I really ought to take a look at that at some time. I always hear nice things about it and never tried it.Its API is pretty much as you'd hope. Works nicely as long as your XML files aren't going to be big enough to blow out the heap.
javiator wrote:That doesn't seem to me to address the OP's concern - which is that he's building his XML output as a whopping great String so he "can't" use JDom for his output without adapting his existing XML generation logic.
I doubt that having a String is an issue here....