module documentation

Undocumented

Function attribute Helper function to fetch a single attribute value from tag :param tag (xml.dom.Element): DOM element node :param a (str): attribute name :return: attribute value if present, otherwise None
Function first_child_element Undocumented
Function fixed_writexml Undocumented
Function next_sibling_element Undocumented
Function opt_attrs Helper routine for fetching optional tag attributes :param tag (xml.dom.Element): DOM element node :param attrs [str]: list of attributes to fetch
Function replace_node Undocumented
Function reqd_attrs Helper routine for fetching required tag attributes :param tag (xml.dom.Element): DOM element node :param attrs [str]: list of attributes to fetch :raise RuntimeError: if required attribute is missing
def attribute(tag, a):

Helper function to fetch a single attribute value from tag :param tag (xml.dom.Element): DOM element node :param a (str): attribute name :return: attribute value if present, otherwise None

def first_child_element(elt):

Undocumented

def fixed_writexml(self, writer, indent='', addindent='', newl=''):

Undocumented

def next_sibling_element(node):

Undocumented

def opt_attrs(tag, attrs):

Helper routine for fetching optional tag attributes :param tag (xml.dom.Element): DOM element node :param attrs [str]: list of attributes to fetch

def replace_node(node, by, content_only=False):

Undocumented

def reqd_attrs(tag, attrs):

Helper routine for fetching required tag attributes :param tag (xml.dom.Element): DOM element node :param attrs [str]: list of attributes to fetch :raise RuntimeError: if required attribute is missing