I recently had the need to display an XML configuration file directly in the browser window for purposes of quickly identifying issues with a particular application. I quickly realized that the XML code that is exported on a nightly basis all came out in one long line before being stored in a blob field in a mySQL database.