Question about the libexpat character data handler automatic escape sequence decoding.
Marat BN <[email protected]>
| Newsgroups | gmane.text.xml.expat.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have a question regarding the libexpat character data handler callback function that's set via libexpat API method XML_SetCharacterDataHandler(...) I noticed that by default libexpat decodes the XML escape sequences from text being parsed before passing them to the character data handler. -- If the XML string being parsed contains XML escape sequences, such as > < & &#xxxx; etc, then the XML_Char * string provided to the character data handler will have all these escape sequences decoded. libexpat must be automatically doing this decoding internally. In my application, I would like to receive the escape sequences intact. Does anyone know how to prevent the character data handler from automatically decoding the XML escape sequences? Or is there another separate data handler callback function that leaves the escape sequences intact? On a related issue -- does libexpat have a separate API to encode/decode XML escape sequences? Thanks, Marat __________________________________ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com