3d-dart/server/system/XMLwriter.py
def dom(self):
        """
        Lazily create a minidom from the information stored
        in this Node object.
        """
        element = Node.doc.createElement(self.tag)
        for key, val in self.attributes.items():
            element.setAttribute(key, val)
        if self.value:
            assert not self.children, "cannot have value and children: " + str(self)
            element.appendChild(Node.doc.createTextNode(self.value))
        else:
            for child in self.children:
                element.appendChild(child.dom()) # Generate children as well
        return element

        Lazily create a minidom from the information stored
        in this Node object.
        
Lazily create a minidom from the information stored
in this Node object.
Lazily create a minidom from the information stored in this Node object .
def dom(self):
        element = Node.doc.createElement(self.tag)
        for key, val in self.attributes.items():
            element.setAttribute(key, val)
        if self.value:
            assert not self.children, "cannot have value and children: " + str(self)
            element.appendChild(Node.doc.createTextNode(self.value))
        else:
            for child in self.children:
                element.appendChild(child.dom()) 
        return element
def dom ( self ) : element = Node . doc . createElement ( self . tag ) for key , val in self . attributes . items ( ) : element . setAttribute ( key , val ) if self . value : assert not self . children , "cannot have value and children: " + str ( self ) element . appendChild ( Node . doc . createTextNode ( self . value ) ) else : for child in self . children : element . appendChild ( child . dom ( ) ) return element
Lazily create a minidom from the information stored
in this Node object.
Lazily create a minidom from the information stored in this Node object .
"""
        Lazily create a minidom from the information stored
        in this Node object.
        """ # Generate children as well
self