I am big funs of UltraEditor, and I find the default setting to format xml is not very nice. And then I found there are still some alternatives as following.
But there are two limits
- You need to open xml file at first, you can not create a new file without save it:(
- If you want to using "replace the selected text with:" option in "Advanced/Tool Configurations...", there might be some encoding problem :(
- Appoarch 1 (Format Xml File)
Open one xml file.
Click "Format/XmlLint Tool"
Uncheck all options, and check the option "Reformat and reindent the output, where indentation is",
Click "Parse" button. - Appoarch 1 (Drop ignorable blank spaces in Xml File)
Open one xml file.
Click "Format/XmlLint Tool"
Uncheck all options, and check the option "Drop ignorable blank spaces", and click "Parse" button.
Click "Parse" button. - Appoarch 2 (Format Xml File)
Click "Advanced/Tool Configurations...", In the promoted form, enter the following info.
Menu Item Name: FormatXml
Command Line: "D:\Tools\UltraEdit-32-v13.101en\UltraEdit-32\GNU\xmllint.exe" --format "%F"
In output panel, check the option of "Create New File", "Capter Output".
Open one xml file.
Click "Advanced/FormatXml" - Appoarch 2 (Drop ignorable blank spaces in Xml File)
Click "Advanced/Tool Configurations...", In the promoted form, enter the following info.
Menu Item Name: FormatXml
Command Line: "D:\Tools\UltraEdit-32-v13.101en\UltraEdit-32\GNU\xmllint.exe" --noblanks "%F"
In output panel, check the option of "Create New File", "Capter Output".
Open one xml file.
Click "Advanced/FormatXml"