On Fri, 2 Mar 2001, sateesh wrote:

> Hi,
> 
>   I tested the following java program and the xml file i used is 
> HelloWorld.xml which is given at the end and the output I am getting is 
> also given at the end:
> 
>    Please let me know why the startElement and endElement call backs are 
> not getting invoked...Where I went wrong................

You need to call:

        reader.setContentHandler(this);

after creating the SAXParser but before calling parse.

Ian

-- 
Ian Roberts, Software Engineer        DecisionSoft Ltd.
tel: +44-1865-203192                  http://www.decisionsoft.com

Reply via email to