Since I upgraded to 6.3.2, I use XML Tools.
- install XML Tools via the Plugin Admin (Plugins → Plugins Admin... Then search for "XML Tools", check its box and click the "Install" button).
- use the shortcut Ctrl+Alt+Shift+B (or menu → Plugins → XML Tools → Pretty Print)


In older versions: menu → TextFX → HTML Tidy → Tidy: Reindent XML.
Answer from remipod on Stack OverflowXML Dokument mit Einrückungen ordentlich darstellen | ComputerBase Forum
How To Auto-Format / Indent XML/HTML in Notepad++ - Stack Overflow
Anzeigen des XML-Codes in Notepad++
Notepad++ / Discussion / [READ ONLY] Help: XML file is not line by line indicated
Since I upgraded to 6.3.2, I use XML Tools.
- install XML Tools via the Plugin Admin (Plugins → Plugins Admin... Then search for "XML Tools", check its box and click the "Install" button).
- use the shortcut Ctrl+Alt+Shift+B (or menu → Plugins → XML Tools → Pretty Print)


In older versions: menu → TextFX → HTML Tidy → Tidy: Reindent XML.
Install Tidy2 plugin. I have Notepad++ v6.2.2, and Tidy2 works fine so far.
Hi Leute,
Ich versuche gerade, eine XML-Datei mit Powershell herunterzuladen. Einige Knoten in der Datei haben folgendes Format:
<FrontendSetting a="531" b="535"/>
<BackendSystemSettings>
<Backend
a ="123"
b="ABC"
c="ABC123"/>
<Backend
a ="456"
b="DEF"
c="DEF456"/>
</BackendSystemSettings>Ich möchte genau dieses Format beibehalten, aber wenn ich die XML-Datei speichere, werden alle Elemente in diesem Tag in eine Zeile gepackt:
<FrontendSetting a="531" b="535"/>
<BackendSystemSettings>
<Backend a ="123" b="ABC" c="ABC123"/>
<Backend a ="456" b="DEF" c="DEF456"/>
</BackendSystemSettings>Oben ist nur ein Beispiel, in meinen echten Daten ist es viel länger, also wenn alle Zeilen zu einer Zeile zusammengeführt werden, wird es später sehr schwer zu überprüfen, da die Zeile zu lang ist.
Ich habe versucht, Select-XML, PreserveWhitespace zu verwenden, aber nichts funktioniert. Habt ihr irgendwelche Vorschläge?
Vielen Dank!
Try XML Tools. Plugins -> XML Tools -> Pretty Print (libXML) or (XML only - with line breaks Ctrl + Alt + Shift + B)
You may need to install XML Tools using your plugin manager in order to get this option in your menu.
In my experience, libXML gives nice output but only if the file is 100% correctly formed.
You need to install XML Tools from the Plugins menu item → Plugins Admin... → Plugins Admin dialog appears and then scroll to bottom of available plugins and check XML Tools, install it and then Ctrl + Alt + Shift + B OR the option for XML Tools above shows up.