[xml] Removing namespace attributes

I am using libxml2 and have a situation where I need to strip the name space attributes from a node:


<front xmlns:aml="http://exampl1.org" xmlns:wxa="http://www.example2.org" >




Above needs to become just:




I tried using xmlUnsetProp() but this is not for the name space attributes... and does not work.


Any suggestions?




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]