[jdom-interest] adding a finalise method to element

Phill_Perryman at Mitel.COM Phill_Perryman at Mitel.COM
Wed Aug 27 13:43:06 PDT 2003


So once I have extended SAX handler how do I actually use it to build a
document, do I then have to extend SAXBuilder as well to use my new
SAXHandler. My knowledge of how all the bits fit together is limited to say
the least.

My code currently looks like

SAXBuilder builder = new SAXBuilder();
builder.setFactory(jdomFactory);
doc = (MptDocument) builder.build(in);

/Phill
IS Dept, Software Engineer.
phill_perryman at mitel.com
http://www.mitel.com
Tel: +44 1291 436023


                                                                                                                                       
                      "Bradley S.                                                                                                      
                      Huffman"                 To:       Phill_Perryman at Mitel.COM                                                      
                      <hip at cs.okstate.ed       cc:       jdom-interest at jdom.org                                                        
                      u>                       Subject:  Re: [jdom-interest] adding a finalise method to element                       
                      Sent by:                                                                                                         
                      jdom-interest-admi                                                                                               
                      n at jdom.org                                                                                                       
                                                                                                                                       
                                                                                                                                       
                      27/08/2003 19:18                                                                                                 
                                                                                                                                       
                                                                                                                                       




Phill_Perryman at Mitel.COM writes:

> Now it's my turn to request a change to JDOM
>
> I have an application with several classes which extend Element and some
of
> these I need to take action on. Currently I have to wait until the
document
> is built and then iterate over the elements, find the ones I want and
then
> call the method as I cannot find a way to tell an Element is complete.

What about extending SAXHandler and overriding endElement?

Brad
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com









More information about the jdom-interest mailing list