get_node_text

InventoryXmlParser.get_node_text(xml_element, tag)[source]

Get the text of a XML node.

Parameters
  • xml_element (etree.SubElement) – The XML element to search.

  • tag (str) – The tag to search in the XML element.

Returns

The node text.

Return type

str