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: XML::LibXML namespaces after node removal
by Dominic Mitchell other posts by this author
Sep 2 2005 12:05PM messages near this date
view in the new Beta List Site
Re: XML::LibXML namespaces after node removal | Re: XML::LibXML namespaces after node removal
& XSLT Robin Berjon wrote:
>  Dominic Mitchell wrote:
>  
> > I don't know about a bug, but it's certainly non-intuitive.  I would
> > have thought that unbindNode() would have sorted it out.  Perhaps a doc
> > patch is in order.
>  
>  
>  To be honest I never quite figured out what unbindNode() was supposed to 
>  do that $foo->parentNode->removeChild($foo) doesn't... so a doc patch 
>  would be welcome :)

I had a quick look at the code.  It appears that unbindNode() removes 
the node by calling into libxml2 whilst removeChild() merely unlinks the 
thing from the DOM directly inside XML::LibXML (the XS/C bits).  To be 
quite frank, I was surprised to see a difference too.

-Dom

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Dominic Mitchell
Robin Berjon
Dominic Mitchell
Robin Berjon
Dominic Mitchell
Petr Pajas

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