title: There is an error in XML document (30, 14) FormatException: Input string was not in a correct format.?
body: <p>I am going to apologise first off as I have spotted an abundance of questions of this nature already on the site.</p>
  
  <p>I am attempting to Deserialize an XML document into a C# object for later usage but am running into issues.</p>
  
  <p>The error log "There is an error in XML document (30, 14). FormatException: Input string was not in a correct format." insinuates that there is a problem with my document specifically at Line 30 column 14 correct?</p>
  
  <blockquote>
    <p>(Irrelevant data has been omitted out using the "-" character)</p>
  </blockquote>
  
  <pre><code>    &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;AddressBook&gt;
      &lt;Contact&gt;
          &lt;Name&gt;Joe Money-Chappelle&lt;/Name&gt;
              &lt;ContactType&gt;-----&lt;/ContactType&gt;
              &lt;DateofBirth&gt;-----&lt;/DateofBirth&gt;
              &lt;AddressLine1&gt;-----&lt;/AddressLine1&gt;
              &lt;AddressLine2&gt;-----&lt;/AddressLine2&gt;
              &lt;AddressLine3&gt;-----&lt;/AddressLine3&gt;
              &lt;AddressLine4 /&gt;
              &lt;Postcode&gt;-----&lt;/Postcode&gt;
              &lt;Email1&gt;-----&lt;/Email1&gt;
              &lt;Email2&gt;-----&lt;/Email2&gt;
              &lt;Phone&gt;01883742871&lt;/Phone&gt;
              &lt;Mobile&gt;07549893431&lt;/Mobile&gt;
              &lt;AdditionalInfo&gt;-----&lt;/AdditionalInfo&gt;
      &lt;/Contact&gt;
      &lt;Contact&gt;
          &lt;Name&gt;Connor Rice&lt;/Name&gt;
              &lt;ContactType&gt;-----&lt;/ContactType&gt;
              &lt;DateofBirth&gt;-----&lt;/DateofBirth&gt;
              &lt;AddressLine1&gt;-----&lt;/AddressLine1&gt;
              &lt;AddressLine2&gt;-----&lt;/AddressLine2&gt;
              &lt;AddressLine3&gt;-----&lt;/AddressLine3&gt;
              &lt;AddressLine4 /&gt;
              &lt;Postcode&gt;-----&lt;/Postcode&gt;
              &lt;Email1&gt;-----&lt;/Email1&gt;
              &lt;Email2 /&gt;
              &lt;Phone /&gt;
              &lt;Mobile&gt;07504500881&lt;/Mobile&gt;
              &lt;AdditionalInfo&gt;-----&lt;/AdditionalInfo&gt;
      &lt;/Contact&gt;
  &lt;/AddressBook&gt;
  </code></pre>
  
  <p>According to that logic then the line below is the culprit:</p>
  
  <pre><code>&lt;Mobile&gt;07504500881&lt;/Mobile&gt;
  </code></pre>
  
  <p>However it is formatted identically to its counterpart in the section just above it which works fine, as demonstrated below:</p>
  
  <pre><code>&lt;Mobile&gt;07549893431&lt;/Mobile&gt;
  &lt;Mobile&gt;07504500881&lt;/Mobile&gt;
  </code></pre>
  
  <p>No other lines present with errors (yet...) so I'm not exactly sure where the problem lies in this... If it is blindingly obvious then again I apologize and will happily remove the question if needs be.</p>