Re: Deleting a Node
by Liam Quin other posts by this author
Nov 13 2006 10:16AM messages near this date
view in the new Beta List Site
Deleting a Node
|
Re: Deleting a Node
& XSLT On Mon, Nov 13, 2006 at 09:16:56AM -0800, Mesdaq, Ali wrote:
> I am using xml to keep a list of items I need to loop through. But I
> would like to delete the items as I am looping through. So in case if
> the system crashes and I boot back up I know where to continue from. So
> now a few questions I have regarding that.
It sounds like you want a database of some sort. LibXML::Node is
not changing disk files, and if your system crashes partway through
writing an XML file back, the XML file will probably be corrupted
so that it won't load back into memory.
Sleepycat (Oracle) dbxml might be a possibilty for you, as it
supports transactions.
> Second question is about the reliability of either the replaceNode call
> or whatever the better function call is. How reliable is that call? If I
> call that is there a chance the document could be in a non-valid state?
> Or will that call ensure that it only deletes that node and not delete
> it partially?
It's only affecting an in-memory copy.
Liam
--
Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
_______________________________________________
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
|