ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
Re: Deleting a Node
by John Saylor other posts by this author
Nov 13 2006 9:26AM messages near this date
view in the new Beta List Site
RE: [BULK] - Re: Deleting a Node | DOM parsing the XML configuration File
& XSLT hi

On 11/13/06, Mesdaq, Ali <amesdaq@[...].com>  wrote:
>  So in case if
>  the system crashes and I boot back up I know where to continue from.

this is a good idea, but maybe you can do this with a different data
set than your original data. there may be some circumstance where you
want your original data intact, regardless of how processing completed
or not.

you can keep track with a counter for each node processed [requires an
additional step to count nodes in recovery]. or maybe you can just
copy the nodes you have processed to another file.

>  One is what do I use to delete the node?

if you're using the DOM, removeChild()

>  Second question is about the reliability of either the replaceNode call
>  or whatever the better function call is. How reliable is that call?

as reliable as anything. how much effort is it worth to trap for this
error case? i'd say not much, but YMMV.

-- 
\js  [ http://or8.net/~johns/ ]
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Ali Mesdaq
Liam Quin
Bruce Miller
Chilkat Software
Ali Mesdaq
Robin Berjon
Ali Mesdaq
Bruce Miller
Ali Mesdaq
Bruce Miller
Ali Mesdaq
John Saylor

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved