title: Google CSE: "File uploading is not successful" with valid XML
body: <p>I'm setting up a UTF-8 google custom search engine. I've written the XML context file but it will not upload.</p>
  
  <p>I've run the XML through several validators and had others look at it, but there don't seem to be any problems.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;CustomSearchEngine id="3yydrop0z2m" creator="007729199335892686358" keywords="Maine, school" language="en" encoding="UTF-8" autocompletions="true"&gt;
      &lt;Title&gt;School Search Engine&lt;/Title&gt;
      &lt;Description&gt;Searches Public School Pages in Maine&lt;/Description&gt;
      &lt;Annotations&gt;
          &lt;Annotation about="www.facebook.com/*"&gt;
              &lt;Label name="_cse_3yydrop0z2m"&gt;&lt;/Label&gt;
          &lt;/Annotation&gt;
          &lt;Annotation about="https://twitter.com/*"&gt;
              &lt;Label name="_cse_3yydrop0z2m"&gt;&lt;/Label&gt;
          &lt;/Annotation&gt;
      &lt;/Annotations&gt;
      &lt;Context&gt;
          &lt;Facet&gt;
              &lt;FacetItem title="Twitter"&gt;
                  &lt;Label name="twitter" mode="BOOST" weight="0.5"&gt;&lt;/Label&gt;
               &lt;/FacetItem&gt;
          &lt;/Facet&gt;
          &lt;Facet&gt;
              &lt;FacetItem title="Maine"&gt;
                  &lt;Label name="maine" mode="BOOST" weight="0.7"&gt;&lt;/Label&gt;
              &lt;/FacetItem&gt;
          &lt;/Facet&gt;
          &lt;Facet&gt;
              &lt;FacetItem title="High School"&gt;
                  &lt;Label name="high" mode="BOOST" weight="0.8"&gt;
                      &lt;Rewrite&gt;high school OR academy OR high&lt;/Rewrite&gt;
                  &lt;/Label&gt;
              &lt;/FacetItem&gt;
          &lt;/Facet&gt;
          &lt;Facet&gt;
              &lt;FacetItem title="Middle School"&gt;
                  &lt;Label name="middle" mode="BOOST" weight="0.7"&gt;
                      &lt;Rewrite&gt;middle school OR middle&lt;/Rewrite&gt;
                  &lt;/Label&gt;
              &lt;/FacetItem&gt;
           &lt;/Facet&gt;
           &lt;Facet&gt;
               &lt;FacetItem title="Elementary School"&gt;
                  &lt;Label name="elementary" mode="BOOST" weight="0.7"&gt;
                      &lt;Rewrite&gt;primary OR grammar school OR elementary&lt;/Rewrite&gt;
                  &lt;/Label&gt;
               &lt;/FacetItem&gt;
          &lt;/Facet&gt;
          &lt;Facet&gt;
              &lt;FacetItem name="museum"&gt;
                  &lt;Label name="museum" mode="ELIMINATE"&gt;&lt;/Label&gt;
              &lt;/FacetItem&gt;
          &lt;/Facet&gt;
          &lt;Facet&gt;
              &lt;FacetItem name="town hall"&gt;
                  &lt;Label name="town hall" mode="ELIMINATE"&gt;
                      &lt;Rewrite&gt;community OR city council&lt;/Rewrite&gt;
                  &lt;/Label&gt;
              &lt;/FacetItem&gt;
          &lt;/Facet&gt;
          &lt;Facet&gt;
              &lt;FacetItem name="other state"&gt;
                  &lt;Label name="other state" mode="ELIMINATE"&gt;
                      &lt;Rewrite&gt;Alabama OR Alaska&lt;/Rewrite&gt;
                  &lt;/Label&gt;
              &lt;/FacetItem&gt;
          &lt;/Facet&gt;
          &lt;BackgroundLabels&gt;
              &lt;Label name="https://www.Facebook.com/*" mode="FILTER"/&gt;
              &lt;Label name="https://www.Twitter.com/*" mode="FILTER"/&gt;
              &lt;Label name="_cse_3yydrop0z2m" mode="FILTER"/&gt;
              &lt;Label name="_cse_exclude_3yydrop0z2m" mode="ELIMINATE"/&gt;
          &lt;/BackgroundLabels&gt;
      &lt;/Context&gt;
      &lt;LookAndFeel element_layout="8" theme="7" custom_theme="false" url_length="full" element_branding="show" enable_cse_thumbnail="true" promotion_url_length="full" font="2"&gt;
          &lt;Logo url="http://inet.state.me.us/education/communications/images/informal01R-200.png" height="50"/&gt;
          &lt;Colors url="#3366cc" background="#FFFFFF" border="#162C40" title="#274F73" text="#000000" visited="ffbd10" visible_hover="#162C40" visible_active="#0000CC"/&gt;
          &lt;Promotions/&gt;
          &lt;SearchControls/&gt;
          &lt;Results border_color="FFFFFF" border_hover_color="#162C40" background_color="#FFFFFF" background_hover_color="#FFFFFF"/&gt;
      &lt;/LookAndFeel&gt;
      &lt;ImageSearchSettings enable="false"/&gt;
      &lt;autocomplete_settings/&gt;
  &lt;/CustomSearchEngine&gt;
  </code></pre>
  
  <p>What are some potential issues that could be at the root of this? I know I'm not supposed to upload all of the code but I'm not sure what's wrong with it.</p>