You can query specific parts of an XML file without opening it: xmllint --xpath "//name/text()" example.xml Use code with caution.
Some common options used with xmllint:
: For quick one-off tasks, sites like XmlLint.com allow you to paste and format XML directly in your browser. xml - Installing xmllint - Stack Overflow xmllint for windows