|
From: Dan P. <dp...@WP...> - 2001-08-17 13:11:31
|
I'd rather not break SAX, thanks anyway... Classes implementing XMLConsumer receives the SAX events - the class receiving them will "know" how to handle them. Since the class we're sending SAX events is usually TraxTransformer, there's no way for us to extend the class. You might be able to add the functionality to a custom DataSource extension. An XMLConsumer is a fancy name for an org.xml.sax.DocumentHandler and a org.xml.sax.ext.LexicalHandler - the two interfaces needed to completely grok an XML document. That's it - it's an interface. You can't "extend" it anyway. On Fri, 17 Aug 2001, Liam Morley wrote: > I didn't see any ability within XMLConsumer to determine what element you > are working within. If that's the case, I think we should subclass to > extend this functionality. If that's not the case, please let me know. |