runpandas._utils.get_nodes

runpandas._utils.get_nodes(file_path, node_names, *, with_root=False)

Parse XML document and iterate over specific nodes

Parameters
  • filepath (str) – Path to the file to be read.

  • node_names (str) – List of nodes to be extracted.

  • with_root (boolean) – Default to False. If True returns the root node.

Returns

Return type

Used as a generator for yielding the nodes.