Get a pretty-print xml from a site (or a remote location)
Sometime, you have to retrieve an xml document from a remote site (like wsdl for a webservice or whatever). But often, you get a flat file unreadable.
To obtain a pretty-print xml document, throw it content into xmllint as follow:
curl http://server/remotefile.xml | xmllint --format -
You can obtain your document from a remote server via ssh as well.
ssh account@server 'cat remotefile.xml' | xmllint --format -
Written by Sébastien Quioc
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ssh
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#