On Jan 25, 11:18 pm, 3D <[email protected]> wrote:
> I'm using a SAXParser to parse an XML document and its getting stuck
> on certain symbols like the 'trademark' symbol and I think even double-
> quotes ".  I really don't need these characters so it would be fine if
> the parser just skips over these.  Instead it throws an exception and
> quits parsing the document.  What can I do?

What I found out was that when the parser hit one of those characters
between element tags, the characters function would be called again.
so a value like

<tag>the "dog" runs</tag>
would render 5 calls:
the
"
dog
"
runs

my solution was to intialize a temporary string on the startelement
call, append that string in the characters call, then assign it to the
proper variable end the end element call.


--~--~---------~--~----~------------~-------~--~----~
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