I'm having trouble with inserted nodes into the tree.  I have the
following code:

def BuildTree (tree, parent, element):
        if element.firstChild==None:
                node = tree.insert_node(parent, None, element.nodeName)
        else:
                node = tree.insert_node(parent, None, element.nodeName,
is_leaf=FALSE)
        print element.nodeName + ": " + `element.nodeValue`
        for n in element.childNodes:
                if n.nodeType == 1 or n.nodeType == 3:
                        BuildTree(tree, node, n)


element.nodeName is a string.  The print statement prints the full
nodename, but both of the tree.insert_node statements insert a node
consisting of only the first character of the string.  Any ideas on why
this might be?

--
Joshua Boyd
http://catpro.dragonfire.net/joshua

-
To unsubscribe: echo "unsubscribe" | mail [EMAIL PROTECTED]

Reply via email to