[xml] Namespace question

Date view Thread view Subject view Author view

From: Bjorn Reese (breese@mail1.stofanet.dk)
Date: Sun Oct 29 2000 - 11:33:06 EST


What is the difference between ns and nsDef in struct _xmlNode in
tree.h?

The reason I ask is that I have a situation where xmlSearchNsByHref()
enters an infinite loop because nsDef is NULL (ns does contain data).
I strongly suspect that the 16th line in xmlSearchNsByHref(), which
is

                while (check != node) {

should be

                if (check != node) {

If I make this modification, the my program seems to work.

Then again, I am searching on a tree during its construction, so I
may be doing something illegal (or at least unexpected).

----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Oct 29 2000 - 11:48:23 EST