I'm attempting to use Notepad++ TextFX HTMLTidy -> Tidy: Reindent XML. This works well with the following exception. Lines longer than 70 character are wrapped, breaking the validity of my xml.

This:

<RevieweeDepartmentName>BB AAAAAAAAAA AAAAAAAAAA AAAA</RevieweeDepartmentName>

Becomes this:

    <RevieweeDepartmentName>BB AAAAAAAAAA AAAAAAAAAA
AAAA</RevieweeDepartmentName>

How can I get it to stop this behavior?

link|improve this question

67% accept rate
feedback

2 Answers

Edit the file HTMLTIDY.CFG and change the line:

wrap:70

to

wrap:0
link|improve this answer
feedback

This isn't exactly a solution, but rather a work-around: I use SoapUI to format XML - it works great, and keeps the XML valid. Besides, it's possible that SoapUI may be useful for whaterver you'd like to do with the XML after you format it.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.