[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Parsing Special Characters with Expat



Help! I'm using Scott's port of Expat, and it works great, but I'm
having a problem with special characters in the XML. Here's an
example:

<ItemProductDescription>This daybed includes back & arms.
Th...</ItemProductDescription>

The ampersand is getting me of course, as well as other characters
such as accents. I know that the data could be escaped coming in to
me, but I don't know if I can get the sender to change the data. A
couple questions:

Is there a way I can handle these characters in Expat as they are,
without the sender having to change the data?

If I can get the sender to change the data, how to I 'unescape' the
incoming data?

I guess I could handle it manually if I could trap for the XML Parsing
Error: not well-formed.

Any suggestions gratefully accepted.

Thanks!

- Michael
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------