assert("|" not in path), "Update XML search to use XPATH syntax!"
// edit tags for allowable characters
path = fixTagsInXpath(path)
found = root.findall(path)if len(found) < 1:
return None
else:
return found[0]
def findPathEllipsesParents(root,path,docLevel=0):
As with findPath, but the parent nodes are kept and ellipses text are used to replace siblings in the resulting tree.
@ In, root, xml.etree.ElementTree.Element, the node to start searching along