Re: [fpc-pascal] renaming XML element

2010-05-04 Thread Marc Santhoff
Sorry, I messed up the structure of the example ... Am Dienstag, den 04.05.2010, 19:30 +0200 schrieb Marc Santhoff: > Example > --- > Now: > > > whatever or nothing > > ...  > <nextsibling> > ... > > > Afterwards: > >  > whatever or nothing > > ... 

[fpc-pascal] renaming XML element

2010-05-04 Thread Marc Santhoff
Hi, since I'm only rarely using XML and the DOM unit I have to ask: I need to rename an element inside an XML tree. I've learned that elements are immutable in the DOM implementation, so renaming has to be done by - makeing a new element with the new name - copying over the complete subtree (chi