Perfect solution? Nope but you could do a search and replace for ><, or whatever the input string looks like, and replace with >\n< to at least get it broken out into one tag per line.
Perfect solution? Nope but you could do a search and replace for ><, or whatever the input string looks like, and replace with >\n< to at least get it broken out into one tag per line.
Yeah, that's basically what I'm doing now, but if you have a 200+ line document with hundreds of nodes and up to 10-12 levels deep, formatting that by hand - even if every tag is on a line of its own - is just a royal pain....
This is the best that I have found to do what you are asking. Download the program "Tidy" from the following URL: http://dev.int64.org/tidy.html
Then, go to Configure | Preferences | Tools | Add - Program. Specify the location where you saved Tidy.exe (e.g. C:\Program Files\Developer Tools\Tidy\tidy.exe)
Change Parameters to the following:
-xml -i $File
Make sure that "Capture Output" is checked.
Then, when you run this, it will output to the "Command Results" window - which you can then copy/paste back into the original document.