get_node_text

sunpy.util.xml.get_node_text(node)[source] [edit on github]

Scans through all children of Element node and gathers the text.

If node has non-text child-nodes, then NotTextNodeError is raised.

Parameters

node (xml.etree.ElementTree.Element) – A XML element node.

Returns

str – The str context of the XML element node.