[xml] Adding a namespace to an existing tree?



I wonder if it's at all possible to add a namespace to
the document element in an existing tree. I've tried:

 xmlNewNs(xmlDocGetRootElement(xmlDoc),(xmlChar
*)"<namespame>",NULL);
and also with:

xmlReconciliateNs(xmlDoc,xmlDocGetRootElement(xmlDoc));

But it doesn't seem to get applied to the rest of the
nodes (children), which I need when I apply a style
sheet to it.

Do I have to do some "apply" method, or is what I want
not even possible?

Thx.
Abe



                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 



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