def METHOD_NAME(node, name):
    """Get an element from an XML node, raise an error otherwise.
    Parameters
    ----------
    node: Element
        XML Element
    name: str
        Child element name
    Returns
    -------
    test: str
        Text contents of the child nodes
    """
    subnode = node.findtext(name)
    if not subnode:
        raise RuntimeError("NEDF header " + name + " not found")
    return subnode