commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Jakarta-commons Wiki] Update of "Digester/FAQ" by SimonKitching
Date Sun, 31 Jul 2005 06:52:56 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Jakarta-commons Wiki" for change notification.

The following page has been changed by SimonKitching:
http://wiki.apache.org/jakarta-commons/Digester/FAQ

The comment on the change is:
Slight tweak to recommended way of using Digester with externally-created parser

------------------------------------------------------------------------------
  // below to hook a digester instance up to that parser...
  
  Digester d = new Digester(p);
+ // add digester rules here
+ 
+ // tell the explicitly created parser to parse the input, using the
+ // digester object as the content handler.
  p.setContentHandler(d);
+ p.parse(inputDocument);
- p.setDTDHandler(d); // optional
- p.setEntityResolver(d); // optional
- 
- // add digester rules here
- d.parse(...);
  }}}
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message