Re: [xml] Namespace of children node existing before xmlSetNS

On Wed, Jan 12, 2005 at 01:47:32PM -0400, Leonardo Boiko wrote:
Hi.  If you call xmlSetNs on the root node, existing children are still 
  namespaceless (the "ns" field of struct xmlNode is NULL, while 
children created afterwards will have it pointing to the root's namespace).

Is there a way of fixing this trough the library (a recursive xmlSetNs 
or something), or do I need to do it myself?

  you need to do it yourself. There is no such API


Daniel Veillard      | Red Hat Desktop team
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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