code: def getChildren(self, name=None, ns=None):
          
          if ns is None:
              if name is None:
                  return self.children
              prefix, name = splitPrefix(name)
              if prefix is not None:
                  ns = self.resolvePrefix(prefix)
          return [c for c in self.children if c.match(name, ns)]
docs: Get a list of children by (optional) name and/or (optional) namespace.
  
          @param name: The name of a child element (may contain a prefix).
          @type name: basestring
          @param ns: An optional namespace used to match the child.
          @type ns: (I{prefix}, I{name})
          @return: The list of matching children.
          @rtype: [L{Element},...]