<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

      <title>Comments on: I do declare! But my XML doesn't.</title>
      <link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt/</link>
      <description>Comments on Ask MetaFilter post I do declare! But my XML doesn't.</description>
	  	  <pubDate>Tue, 26 Feb 2008 17:39:00 -0800</pubDate>
      <lastBuildDate>Tue, 26 Feb 2008 17:39:00 -0800</lastBuildDate>
      <language>en-us</language>
	  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
	  <ttl>60</ttl>

<item>
  	<title>Question: I do declare! But my XML doesn&apos;t.</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt</link>	
  	<description>We are moving our sites from a WAMP to a LAMP and one of the XML parser classes has gone all haywire. Eeep. I love that I have another developer on my team now, but unfortunately, that means I don&apos;t know every piece of code on our sites. Kid Wonder created an app for sending our product (video based) to mobile devices using the class WURFL_PHP. He *said* he tested everything on the new server before we changed, but now that the A records are switched (something I need a third party for) the parse in his application is returning &quot;XML error: XML declaration not finished at line 1 column 15&quot;.&lt;br&gt;
&lt;br&gt;
A Google of the error turned up a few CMS install issues, and several pages displaying the error, but nothing too useful to me. Everything was fine on the WAMP server, so I&apos;m wondering if there&apos;s something I&apos;m missing. (God knows I&apos;ve had my head in the trees today and my grey matter isn&apos;t where it should be.)&lt;br&gt;
&lt;br&gt;
I checked out the XML doc, and it&apos;s properly formatted, as far as I can tell. (It&apos;s the doc supplied &lt;a href=&quot;http://wurfl.sourceforge.net/wurfl.xml&quot;&gt;here&lt;/a&gt;.) The class is well written and doesn&apos;t seem to be missing anything. XML features are all enabled in PHP. Help Mefites!</description>
  	<guid isPermaLink="false">post:ask.metafilter.com,2008:site.84685</guid>
  	<pubDate>Tue, 26 Feb 2008 17:24:42 -0800</pubDate>
  	<dc:creator>foxydot</dc:creator>
	
	<category>linux</category>
	
	<category>windows</category>
	
	<category>xml</category>
	
	<category>php</category>
	
	<category>webserver</category>
	
</item>
<item>
  	<title>By: jenkinsEar</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1252750</link>	
  	<description>check that the xml declaration is at the very begining of the doc, looks like:&lt;br&gt;
&lt;br&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot;?&amp;gt; &lt;br&gt;
&lt;br&gt;
and has no leading spaces or newlines. It must be the absolutely very first thing in the file.&lt;br&gt;
&lt;br&gt;
Good luck!</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1252750</guid>
  	<pubDate>Tue, 26 Feb 2008 17:39:00 -0800</pubDate>
  	<dc:creator>jenkinsEar</dc:creator>
</item>
<item>
  	<title>By: genghis</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1252765</link>	
  	<description>DOS line endings?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1252765</guid>
  	<pubDate>Tue, 26 Feb 2008 17:51:04 -0800</pubDate>
  	<dc:creator>genghis</dc:creator>
</item>
<item>
  	<title>By: flabdablet</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1252775</link>	
  	<description>Smart quotes?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1252775</guid>
  	<pubDate>Tue, 26 Feb 2008 18:09:22 -0800</pubDate>
  	<dc:creator>flabdablet</dc:creator>
</item>
<item>
  	<title>By: flabdablet</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1252800</link>	
  	<description>OK, I just downloaded the file you linked to and had a look in it, and it contains neither DOS line endings nor &amp;quot;smart&amp;quot; quotes.&lt;br&gt;
&lt;br&gt;
Are you sure your parser is parsing the file you think it&apos;s parsing?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1252800</guid>
  	<pubDate>Tue, 26 Feb 2008 18:35:42 -0800</pubDate>
  	<dc:creator>flabdablet</dc:creator>
</item>
<item>
  	<title>By: scottreynen</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1252819</link>	
  	<description>&lt;i&gt;Are you sure your parser is parsing the file you think it&apos;s parsing?&lt;/i&gt;&lt;br&gt;
&lt;br&gt;
Yeah, I suspect the file is never making it into the XML parser. When I follow that link in Firefox, I get a response saying the file is over 6MB, but it stops loading and just hangs after about 5MB.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1252819</guid>
  	<pubDate>Tue, 26 Feb 2008 19:04:08 -0800</pubDate>
  	<dc:creator>scottreynen</dc:creator>
</item>
<item>
  	<title>By: flabdablet</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1252824</link>	
  	<description>If the parser can&apos;t actually find the file it needs, and this has happened after moving from Windows to Linux, it might be because the Linux filesystems are case-sensitive and the Windows ones aren&apos;t.  Can you chefilesystem issue.  Are you sure you&apos;re not trying to parse Wurfl.xml or wurfl.XML?</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1252824</guid>
  	<pubDate>Tue, 26 Feb 2008 19:08:55 -0800</pubDate>
  	<dc:creator>flabdablet</dc:creator>
</item>
<item>
  	<title>By: flabdablet</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1252826</link>	
  	<description>Phew, I did a fluffer.  Please ignore that typing fart.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1252826</guid>
  	<pubDate>Tue, 26 Feb 2008 19:09:42 -0800</pubDate>
  	<dc:creator>flabdablet</dc:creator>
</item>
<item>
  	<title>By: foxydot</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1252911</link>	
  	<description>Not smart quotes, but it put me on the trail. Two days ago Boy Wonder was testing another of the moved sites and had a &amp;quot;weird error&amp;quot;, which was really a malformed MySQL request puking into the buffer. Because I didn&apos;t have time to figure out why his code wasn&apos;t escaping properly, I cheated my way out and turned on runtime magic quotes in PHP. Aaaaand, the magic quotes added a / before the &amp;quot; in version=&amp;quot;1.0&amp;quot;.&lt;br&gt;
&lt;br&gt;
Thanks for the brain tap guys! At least now the mobile service is running, and that&apos;s the Big Boss&apos; favorite toy. He won&apos;t notice the malformed MySQL for a couple days! ;)</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1252911</guid>
  	<pubDate>Tue, 26 Feb 2008 20:43:41 -0800</pubDate>
  	<dc:creator>foxydot</dc:creator>
</item>
<item>
  	<title>By: flabdablet</title>
  	<link>http://ask.metafilter.com/84685/I-do-declare-But-my-XML-doesnt#1254519</link>	
  	<description>Reason I thought it might be quote-related is because that&apos;s what&apos;s on line 1 at column 15.</description>
  	<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.84685-1254519</guid>
  	<pubDate>Thu, 28 Feb 2008 03:13:00 -0800</pubDate>
  	<dc:creator>flabdablet</dc:creator>
</item>

    </channel>
</rss>
