Functions
xacro_jade::xmlutils Namespace Reference

Functions

def attribute
def check_attrs
def first_child_element
def fixed_writexml
def next_sibling_element
def opt_attrs
def replace_node
def reqd_attrs

Function Documentation

def xacro_jade.xmlutils.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

Definition at line 72 of file xmlutils.py.

def xacro_jade.xmlutils.check_attrs (   tag,
  required,
  optional 
)
Helper routine to fetch required and optional attributes
and complain about any additional attributes.
:param tag (xml.dom.Element): DOM element node
:param required [str]: list of required attributes
:param optional [str]: list of optional attributes

Definition at line 110 of file xmlutils.py.

Definition at line 36 of file xmlutils.py.

def xacro_jade.xmlutils.fixed_writexml (   self,
  writer,
  indent = "",
  addindent = "",
  newl = "" 
)

Definition at line 129 of file xmlutils.py.

Definition at line 43 of file xmlutils.py.

def xacro_jade.xmlutils.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

Definition at line 87 of file xmlutils.py.

def xacro_jade.xmlutils.replace_node (   node,
  by,
  content_only = False 
)

Definition at line 50 of file xmlutils.py.

def xacro_jade.xmlutils.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

Definition at line 96 of file xmlutils.py.



xacro
Author(s): Stuart Glaser, William Woodall
autogenerated on Sat Jun 8 2019 18:50:42