Is there a way to format a XML file and make it go into block mode.

When I save a XML file, the content is in one line. It works but just hard to read.