Manas
Manas

Reputation: 109

How to indent STX transformation output(type "XML")?

How to indent the output XML that is generated as a result of STX transformation. I searched for it in the official documentation by looking at the transform element, but found that it does not have any indent attribute, like XSLT has. Is there a way to do it?

Upvotes: 0

Views: 231

Answers (1)

Aleksandr Zhuravlёv
Aleksandr Zhuravlёv

Reputation: 43

You can use xmllint, for example

xmllint --format file.xml > file-formated.xml

Upvotes: 1

Related Questions