[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with expat parsing entity string in element data...
- From: "Steven E. Harris" <sharris@speakeasy.org>
- To: xml-dev@lists.xml.org
- Date: Wed, 02 May 2001 17:05:10 -0700
Sean Pedersen <sean.pedersen@corp.usa.net> writes:
> Is there any way to force expat to NOT seperate the element data
> when it includes entities?
No, but you can write a simple filter handler that collects disparate
character data callbacks into a single parameter to the end element
callback. Granted, you have to know which elements to do this
collecting for, as the strategy doesn't work where mixed content is
permitted.
It's a little hard to talk about layering, decorators, proxies, and
the like when you're writing to a C interface. If you wind up wrapping
expat in some SAX-like C++ library, my advice will make more sense.
--
Steven E. Harris :: seh@speakeasy.org
GnuPG :: 0x70248E67