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>

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.



Page optimized by WP Minify WordPress Plugin