using notepad++ to quickly format xml

You must have notepad++ installed, also the XML Tools plugin,
and then from menu of XML Tools plugin have selected “Pretty print (XML only – with line breaks)” ,
this will format any piece of XML with all the proper line spacing.
using notepad++ to quickly format xml
then it should be like this
using notepad++ to quickly format xml
source here