Xmllint Windows
To save the result to a file:
(Note: This installs xmlstarlet , which includes xmllint -like functionality. For pure xmllint , look for libxml2 via Cygwin or MSYS2). xmllint windows
The --xpath option is extremely useful for querying XML: To save the result to a file: (Note:
Extract the host attribute:
xmllint --xpath "string(//database/@host)" config.xml xmllint windows
Output: localhost


