Problem with XMLReader
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <9B9D098EAC97D411938900805FFE1B6201E94AD6@gbvwfsmks00003> |
Hi,
In 3 out of the 3 XML projects that I have worked on using SAX I have wanted
the following interface to be more widely used:
public interface ContentHandlerSource
{
/**
* Call this method to get an XML document streamed to you via the
* passed ContentHandler
*/
void writeToContentHandler(ContentHandler h) throws SAXException;
}
The logic behind it - sources of SAX events sometimes need to be configured
at run-time. Writing an XMLReader for each is time consuming, and hard
because InputSources aren't a good fit to many data sources (in-memory, DBs,
etc).
Am I missing something, or does this exist already?
If I'm not missing anything then, in my opinion something like this ought to
be added to SAX, because XMLReader is far to heavyweight for simple things
like this.
Thanks,
Joe.
**********************************************************************************
The opinions expressed in this E-mail are those of the individual and
not necessarily the company. This E-mail and any files transmitted
with it are confidential and solely for the use of the intended recipients
**********************************************************************************
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
List: sax-devel, [email protected]
See: http://www.saxproject.org/
https://lists.sourceforge.net/lists/listinfo/sax-devel