You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by simo kauranen <sl...@yahoo.com> on 2002/10/18 10:58:22 UTC
Emitting SAX events
I have a transformer which writes the incoming
document to disk. Does anyone happen to know how I
could forward the SAX events after writing down the
pipeline? AbstractSAXTransformer has some send methods
but how to use them? Now my code looks like this:
...
public void startDocument(){
writeToDisk("<?xml version=\"1.0\"
encoding=\"ISO-8859-1\"?>");
}
public void startElement(...) {
writeToDisk(...);
}
public void endElement(...) {
writeToDisk(...);
}
Simo K.
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>