[Home] [By Thread] [By Date] [Recent Entries]

  • From: "Steven E. Harris" <sharris@s...>
  • To: xml-dev@l...
  • Date: Wed, 02 May 2001 17:05:10 -0700

Sean Pedersen <sean.pedersen@c...> 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@s...
GnuPG                   :: 0x70248E67

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member