The xml-prettify package

[Tags: bsd3, library, program]

A simple command-line XML pretty-printer which automatically handles indentation.


[Skip to ReadMe]

Properties

Version0.1.0.1
Change logNone available
Dependenciesbase (>=4 && <=5), cmdargs, unix (>=2.4) [details]
LicenseBSD3
AuthorDavid M. Rosenberg
Maintainerdmr@davidrosenberg.me
CategoryText
Home pagehttp://github.com/rosenbergdm/xml-prettify
Executablesxml-prettify
UploadedThu Jun 24 11:11:22 UTC 2010 by DavidRosenberg
DistributionsNixOS:0.1.0.1
Downloads229 total (14 in last 30 days)
Votes
0 []
StatusDocs not available [build log]
All reported builds failed as of 2015-05-21 [all 2 reports]

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for xml-prettify-0.1.0.1

xml-prettify

A pretty printer / indentation tool for generic XML.

Installation

There are no prerequisites other than GHC (>=6.10).

  1. Using cabal-install

    $ cabal install xml-prettify

  2. From source archive

    $ tar xzvf xml-prettify-0.0.1.tar.gz

    $ cd xml-prettify-0.0.1

    $ ghc --make Setup.hs

    $ ./Setup configure

    $ ./Setup build

    $ ./Setup install

Usage

$ cat ugly.xml
<Configuration><UPnP><UDN><MediaRenderer>6c36e3a3-xxxx=4e1c-ac5f-506e515f0491</MediaRenderer></UDN><MythFronten><DefaultBackend><DBHostName>localhost</DBHostName><DBUserName>mythtv</DBUserName><DBPassword>xxxxxxx</DBPassword><DBName>mythconverg</DBName><DBPort>0</DBPort></DefaultBackend></MythFrontend></UPnP></Configuration>
$ xml-prettify ugly.xml
<Configuration>
  <UPnP>
    <UDN>
      <MediaRenderer>
        6c36e3a3-xxxx=4e1c-ac5f-506e515f0491
      </MediaRenderer>
    </UDN>
    <MythFronten>
      <DefaultBackend>
        <DBHostName>
          localhost
        </DBHostName>
        <DBUserName>
          mythtv
        </DBUserName>
        <DBPassword>
          xxxxxxx
        </DBPassword>
        <DBName>
          mythconverg
        </DBName>
        <DBPort>
          0
        </DBPort>
      </DefaultBackend>
    </MythFrontend>
  </UPnP>
</Configuration>

Contact

For questions, comments and patches, email me at dmr@davidrosenberg.me.