A string of XML:
<root><subel><subel2>Text Node</subel2></subel></root>
Send it through xmllint:
echo '<root><subel><subel2>Text Node</subel2></subel></root>' | xmllint --format -
Output from xmllint:
<?xml version="1.0"?> <root> <subel> <subel2>Text Node</subel2> </subel> </root>

0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.