Re: C++ SAX Parser ---handling special characters
- From: Martin Honnen <mahotrash@xxxxxxxx>
- Date: Tue, 17 Apr 2007 19:12:35 +0200
mamatha.kumar@xxxxxxxxx wrote:
The output is
The StreetName is A
The StreetName is & B
Why is this happening instead of getting the StreetName as A & B.
What is the mistake am making ?
You seem to expect that the parser pushes the full contents of an element into your characters handler but it is not required to do so, it can break up character data into chunks and call the characters handler several times. So your SAX client application needs to take care of that and store the character data somewhere and concatenate if you need that.
--
Martin Honnen
http://JavaScript.FAQTs.com/
.
- Follow-Ups:
- Re: C++ SAX Parser ---handling special characters
- From: Joseph Kesselman
- Re: C++ SAX Parser ---handling special characters
- References:
- C++ SAX Parser ---handling special characters
- From: mamatha . kumar
- C++ SAX Parser ---handling special characters
- Prev by Date: C++ SAX Parser ---handling special characters
- Next by Date: Re: C++ SAX Parser ---handling special characters
- Previous by thread: C++ SAX Parser ---handling special characters
- Next by thread: Re: C++ SAX Parser ---handling special characters
- Index(es):