Skip to content


XML Format Test

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>
Bookmark and Share

Posted in Linux Tools.


0 Responses

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



Some HTML is OK

or, reply to this post via trackback.