On May 8, 1:16 pm, "Ventrix Kostis P." <[email protected]> wrote:
> I'm trying to parse a tag using the SAXParserFactory, SAXParser and
> the XMLReader classes, which contains a String that is bigger than
> 1024 characters. This gives me two returns in the "new String(ch,
> start, length);" inside the "public void characters" method.
>
> Except for making my code more complex, is there any other way I could
> read ALL the characters at once?

The solution btw is this:
public void characters(char ch[], int start, int length) {
   if (this.in_text) {
      String text = new String(ch, start, length);
      this.myObject.setBigText(this.myObject.getBigText()+text);
   }
}

I cannot understand why the XML parser can not read more than 1024
characters.
Is this some king of bug?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to