an xml pretty printer
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
bin
.gitignore
README.md
xmlpretty.gemspec

README.md

xmlpretty

An xml pretty printer.

Installation

gem install xmlpretty

Usage

Just pipe your xml into xmlpretty

$ echo '<foo><bar baz="quxx">something</bar></foo>' | xmlpretty
<foo>
  <bar baz='quxx'>
    something
  </bar>
</foo>

Indent levels can be specified by the first argument

$ echo '<foo><bar baz="quxx">something</bar></foo>' | xmlpretty 4
<foo>
    <bar baz='quxx'>
        something
    </bar>
</foo>