[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:

 

<front>

 

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

 

Any suggestions?

 

Karanjit

 



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