code: def buildPath(self, parent, path):
          
          for tag in path.split('/'):
              child = parent.getChild(tag)
              if child is None:
                  child = Element(tag, parent)
              parent = child
          return child
docs: Build the specifed pat as a/b/c where missing intermediate nodes are
          built automatically.
          @param parent: A parent element on which the path is built.
          @type parent: I{Element}
          @param path: A simple path separated by (/).
          @type path: basestring
          @return: The leaf node of I{path}.
          @rtype: L{Element}