John Fessenden wrote:
how exactly would one go about writing a provider that output SAX events
into the chain?  I've written a content provider that uses a SAX driver I
wrote to parse some proprietary text markup, and output XML.  but within
the provider I chain my driver to XML::SAX::Writer to provide a scalar for
get_strref().

is there a better way? ( more streaming)
is there something I missed in the API that would allow the content
provider to provide SAX events into the chain, without having the
intermediate step of converting to text to pass through the scalar?

Currently you can't have a streamed pipeline. To be honest I'm not convinced it would actually be better, in fact I'm almost certain it would be slower.


However the very latest AxKit adds a get_dom() to the Provider interface. What you are currently doing due to the previous model is: parse as SAX -> write SAX to string -> parse string. That's clearly not optimal :) Chances are you'd gain performance by writing to a DOM instead of to a string if the next module in the pipeline asks for get_dom() instead of get_strref().

--
Robin Berjon <[EMAIL PROTECTED]>
Research Engineer, Expway        http://expway.fr/
7FC0 6F5F D864 EFB8 08CE  8E74 58E6 D5DB 4889 2488


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to