Skip to content

Latest commit

 

History

History
executable file
·
15 lines (8 loc) · 727 Bytes

README.md

File metadata and controls

executable file
·
15 lines (8 loc) · 727 Bytes

Get or Remove HTML element

Get or Remove HTML element(s) in a file by specifying a path

The element path is of Xpath syntax e.g:

html/body/div[1]/div/div[2]

means find in a given HTML or XML file, the second div tag element that is under every div element, under the first div element, under any body element, under any html element.

html/body/div[1]//div[1]/div[2]

means find in a given HTML or XML file, the second div tag element that is under the first div element lies anywhere, by depth or breadth, in the first div element of any body element, under any html element.

It may be put in multiply one after another delimited by ; or |