Are there any command line tools for controllable XML formatting?
Posted
by Scott Stafford
on Stack Overflow
See other posts from Stack Overflow
or by Scott Stafford
Published on 2010-04-02T18:05:12Z
Indexed on
2010/04/02
18:13 UTC
Read the original article
Hit count: 386
Hi -
I am searching for a command-line tool (or XSLT technique, or C# code that can be made into a command-line tool, etc) for Windows that will do XML pretty-printing. Specifically, I want one that has the ability to put attributes one-to-a-line, something like:
<Node>
<ChildNode
value1='5'
value2='6'
value3='happy' />
</Node>
It doesn't have to be EXACTLY like that, but I want to use it for an XML file that has nodes with dozens of attributes and spreading them across multiple lines makes them easier to read, edit, and text-diff.
© Stack Overflow or respective owner