[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: & and eXpat
Hi Bob,
It's never safe to assume that Expat will pass the entire character data
string in one call. It will frequently call your character data handler
multiple times. You should write code to concatenate the results together.
For an example of how to do that in RPG, take a look at the CUSTLIST
sample code that's in the QRPGLESRC file included with the Expat for
iSeries download.
Let us know how it turns out.
Bob Barnhart wrote:
> I'm using eXpat to parse some XML. When an element of my XML
> contains a correctly encoded (at least, I think it is) ampersand, the
> parser acts like the element's character data stops before reaching
> it. For example, if the element is <name>Bob & Melinda
> Barnhart</name>, the parser's character data handler only receives
> 'Bob ' as its input. How can I get it to process the whole string?
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------