All headers in the resulting index file are now XPaths
--xpaths is now --disambiguate-xpaths. Any unique XPaths will be changed into a shortened version.
Information within the index file is no longer missed due to duplicate generalized XPaths
New function: grab_elements(), for your XPath comparison needs. Returns a tuple of the element names in the order they appear in the XPath.
covert_xpath_to_tag has been removed, since it's functionality is no longer needed.
New function: renumber_xpaths(), which replaces the numbering in the XPaths to represent their occurrence rather than their hierarchy within the label file.
This pull request does the following:
XPaths
--xpaths
is now--disambiguate-xpaths
. Any uniqueXPaths
will be changed into a shortened version.XPaths
grab_elements()
, for yourXPath
comparison needs. Returns a tuple of the element names in the order they appear in theXPath
.renumber_xpaths()
, which replaces the numbering in the XPaths to represent their occurrence rather than their hierarchy within the label file.