Is there a stylesheet or Windows commandline tool for controllable XML formatting, specifically putt
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/18
9:53 UTC
Read the original article
Hit count: 528
Hi -
I am searching for an XSLT or command-line tool (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.
NOTE: I think my preferred solution is an XSLT sheet I can pass through a C# method, though a Windows command-line tool is good too.
© Stack Overflow or respective owner