Re: [xml] Namespace declaration parent, doc: also broken?



On Sat, Feb 07, 2004 at 12:23:39AM -0500, Anthony Carrico wrote:
Namespace declaration serialization seems broken, or absent. For
example:

Namespace declaration parent and document links also seem broken. For
example:

bash-2.05b$ cat tmp3.py

import libxml2
try:
    doc = libxml2.newDoc("1.0")
    e = doc.newChild(None, "test", None)
    nsd = e.newNs("http://bogus";, "prefix")
    print
    print "e: " + repr(e)
    print "e.nsDefs(): " + repr(e.nsDefs())
    print "nsd: " + repr(nsd)
    print "nsd.get_parent(): " + repr(nsd.get_parent())
    print "nsd.get_doc(): " + repr(nsd.get_doc())
finally:
    if doc: doc.freeDoc()

bash-2.05b$ python tmp3.py
e: <xmlNode (test) object at 0x4076c12c>
e.nsDefs(): <xmlNs (prefix) object at 0x406d464c>
nsd: <xmlNs (prefix) object at 0x406d466c>
nsd.get_parent(): None
nsd.get_doc(): None

-- 
Anthony Carrico



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