docs: def create_node(name, parent=None, ns='', tail=False, text=False):
      """
      Creates a new node
      :param name: Node name
      :param parent: Node parent
      :param ns: Namespace to use
      :param tail: Tail to add
      :param text: Text of the node
      :return: New node
      """
      node = etree.Element(etree.QName(ns, name))
      if parent is not None:
          parent.append(node)
      if tail:
          node.tail = tail
      if text:
          node.text = text
      return node