Hi -
Does anyone know why the characters method of the DefaultHandler class
breaks, and introduces a newline, whenever it encounters the ampersand
character in the input string. (I'm writing an XML parser.)
For example when the parser encounters the input string, "mergers &
acquisitions", the method DefaultHandler::characters(), shown below, returns
Input: mergers
Input: & acquisitions
Instead of
Input: mergers & acquisitions
Thanks,
- Olumide
//
void DefaultHandler::characters (const XMLCh *const chars, const
XMLSize_t length)
{
char* str = XMLString::transcode( chars );
cout << "Input: " << str << endl;
}