On Mon, 2003-01-27 at 13:58, Robert Simmons wrote:
> This sucker connects to an EJB which runs the given JDO query and
> returns the set of found objects from the database. Best of all it
> works!!!! See the two attached files. Next thing you know I will be
> writing something useful. O_O
>  

Just some small hints...

* I see you do the following in your code:

this.contentHandler.processingInstruction("xml",                                       
        "version=\"1.0\" encoding=\"UTF-8\"");

You shouldn't create the XML declaration this way, since an XML
declaration is not a processing instruction. The SAX API explicitely
forbids this.

* For logging, instead of using log4j, you can use Avalon's logger.
Since the class extends from AbstractGenerator, it is already available:
simply call getLogger().error("...")

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]


---------------------------------------------------------------------
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:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to