I am generating an xml file using php, and saving the file as :
file_put_contents(filename,$xml->asXML());
When I open this file in browser, it shown in proper order. But when I open it in vim, it is showing at a go, i.e. without any breaks. Pretty much like this :
<xml><Topology><a></a><b></b></Topology></xml>
I want to resolve this, i.e. I want the xml file to be shown childwise, as shown in the browser. Is there any way to do this?