title: DefaultHandler class in android doesnt read entire string from xml
body: <p>I am extending DefaultHandler to parse an xml.
  I am parsing this page:
  <a href="http://maps.googleapis.com/maps/api/directions/xml?origin=staten%20island&amp;destination=florida&amp;sensor=false" rel="nofollow">http://maps.googleapis.com/maps/api/directions/xml?origin=staten%20island&amp;destination=florida&amp;sensor=false</a></p>
  
  <p>I am getting all the polyline>points.
  Everything works fine except for one specific string.
  I am overriding the characters method in DefaultHandler like this:</p>
  
  <pre><code>public void characters(char[] ch, int start, int length) throws SAXException {
  if (currentElement) {
      Log.v("Length", length+"");
      currentValue = new String(ch, start, length);
      currentElement = false;
      }
  
  }
  </code></pre>
  
  <p>The length returns 282 when the string is 660 characters long.
  This is the string:</p>
  
  <p>qhitFxpifMn@t@vA<code>CdM</code>WnnBjeEtI|PlIxNxHhMjLdQ|dAlwA<code>~CxfEfOxRlK</code>O~PdUvOlTnHdJbYl\fVlW<code>q@~p@~gA</code>gAfKzKbP<code>Rpa@bi@|wAnuBjZ|c@rD~F</code>JjP|I|Qzr@<code>~AbKpS</code>J~OvGdKnPhUbMpN~{@~{@tLhMlZfZnI~Ilh@nh@nN<code>O~GbJjEpGpErHbIfPpDxIvDpKzRvp@rE|MrF|MhKpRbF</code>Ir_@jo@<code>LtS~MzYp[bw@hEvJ|F</code>LbLvQzHrJfv@fz@nUxXh<code>AtoAlGzIl</code>AbwAvMfRx_AnmAlr@z}@jQtTfJxJv]h]buDfqDjFrGbI~K|E~HpFnKlFfLzB|FjElMhCvI|T<code>w@vDnPzChPx@vFdBhOrh@xlFbNptAvAdMnB</code>MnEjT~EvQhF<code>O~F</code>NjCjFhEtHlEbHbk@bx@fWb^nSvXnSrYxGpKjDvGnDxHnHdR~_A|gCdNz]tEtMfs@zlBbHhQ|jDzoH|r@lzA|Yvk@xClFvJxRhInOhP<code>\hJ|PbIvOxB|E|m@plA~LpUzs@dwAvj@hfA|D|IrDrJzlAriDhFfR~Uv~@h</code>@j|Afy@<code>{DtFzX|BtOpArLvSjcCv@dNJjEGbFDdDVnElAnIx@xDnC~JbApFb@fDbKb~@</code>Dj^hBvN|BbO|Dl]</p>
  
  <p>And this is what DefaultHandler returns:</p>
  
  <p>qhitFxpifMn@t@vA<code>CdM</code>WnnBjeEtI|PlIxNxHhMjLdQ|dAlwA<code>~CxfEfOxRlK</code>O~PdUvOlTnHdJbYl\fVlW<code>q@~p@~gA</code>gAfKzKbP<code>Rpa@bi@|wAnuBjZ|c@rD~F</code>JjP|I|Qzr@<code>~AbKpS</code>J~OvGdKnPhUbMpN~{@~{@tLhMlZfZnI~Ilh@nh@nN<code>O~GbJjEpGpErHbIfPpDxIvDpKzRvp@rE|MrF|MhKpRbF</code>Ir_@jo@<code>LtS~MzYp[bw@hEvJ|F</code>LbLvQzHrJfv@fz@nUxXh`Ato</p>
  
  <p>It stops at character 282 and I don't know why.</p>