We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProcessing DevelopmentLibraries,  Tool Development › proXML deleting children
Page Index Toggle Pages: 1
proXML deleting children (Read 1178 times)
proXML deleting children
Mar 1st, 2006, 4:47am
 
Hey,

I am working with proXML and am adding children to a tree element.

However, I want to be able to undo the last addition to the tree if I make a mistake...

Does anyone know how to go about this, as there is no removeChild() method available in the library?

The only solution I can think of right now is creating a document called newXML, then adding all the children up to tree.lastChild()-1 then redefining tree from newXML... but this is roundabout and pretty cumbersome.

tk
Re: proXML deleting children
Reply #1 - Mar 2nd, 2006, 4:32pm
 
Hi kirton

Yes you are right, a remove method would be really handy, I will definetly integrate that, so far you could buffer the children in a List or an Array and add them when you are really sure everything is okay.

I can not promise  how long it will take to implement the method, but I will post it as soon it is done.
Re: proXML deleting children
Reply #2 - Mar 2nd, 2006, 6:47pm
 
Ok thanks.

Cheers,
tk
Re: proXML deleting children
Reply #3 - Oct 31st, 2006, 9:33pm
 
Take a look here:

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_libraries_tools;action=display;num=1162326801;start=0#0
Page Index Toggle Pages: 1