title: Laravel generated XML file has space at start
body: <p>I'm generating a Google products feed using Laravel 4. I'm using a Blade file to do this, but Laravel is adding a mystery space at the very start of the output, which causes Google to reject the XML file as invalid. Any ideas why?</p>
  
  <p>My controller is:</p>
  
  <pre><code>public function googleFeed()
  {
      //generates a Google Merchant XML feed of products
      $products = DB::table('products')-&gt;get();
      $content = View::make('shop.googlefeed', ['products' =&gt; $products]);
      return Response::make($content, '200')-&gt;header('Content-Type', 'text/xml');
  
  }
  </code></pre>
  
  <p>And my blade file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"&gt;
      &lt;channel&gt;
      &lt;title&gt;Title&lt;/title&gt;
      &lt;link&gt;http://example&lt;/link&gt;
      &lt;description&gt;Desc&lt;/description&gt;
          @foreach ($products as $product)
                  &lt;item&gt;
                      &lt;g:id&gt;{{($product-&gt;id)}}&lt;/g:id&gt;
                      &lt;title&gt;{{($product-&gt;productname)}}&lt;/title&gt;
                      &lt;link&gt;http://example.com/product/{{($product-&gt;slug)}}&lt;/link&gt;
                      &lt;description&gt;{{($product-&gt;shortdesc)}}&lt;/description&gt;
                      &lt;g:image_link&gt;{{($product-&gt;imgurlthumb)}}&lt;/g:image_link&gt;
                      &lt;g:price&gt;{{($product-&gt;productprice)}} GBP&lt;/g:price&gt;
                      &lt;g:gtin&gt;{{($product-&gt;gtin)}}&lt;/g:gtin&gt;
                      &lt;g:condition&gt;new&lt;/g:condition&gt;
                      &lt;g:availability&gt;in stock&lt;/g:availability&gt;
                  &lt;/item&gt;
          @endforeach
      &lt;/channel&gt;
  &lt;/rss&gt;
  </code></pre>
  
  <p>No space in the Blade file. But, the output is: </p>
  
  <pre><code> &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"&gt;
  &lt;channel&gt;
  &lt;title&gt;Title&lt;/title&gt;
  ....
  </code></pre>
  
  <p>Why is this space added? I just can't see where it would come from! It doesn't seem like much of a problem, but it causes the feed to fail validation and is rejected by Google. Failing being able to establish the source of it, is there a way to strip it out after processing?</p>
  
  <p>Many thanks.</p>