You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Andy Clark <an...@apache.org> on 2001/04/04 23:42:55 UTC

Re: Content handler based on the XML content??

"Sureka, Sushil" wrote:
> Is it possible to load a particular content handler  based on one of the
> field value in the xml file. For example if I have

Since you know the kinds of "records" you are processing in your
XML documents, write a custom multi-plexing content handler. The
multi-plexing handler would change the appropriate content handler
based on the "record" that it sees. In this way you can cleanly
separate your code into separate content handler instances.

-- 
Andy Clark * IBM, TRL - Japan * andyc@apache.org

---------------------------------------------------------------------
In case of troubles, e-mail:     webmaster@xml.apache.org
To unsubscribe, e-mail:          general-unsubscribe@xml.apache.org
For additional commands, e-mail: general-help@xml.apache.org