ParentFull threadundume·xmllint can do that: curl example.org | xmllint --html --xpath '//some/xpath/selector' -View on HN