commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Kitching <skitch...@apache.org>
Subject Re: RE : [Digester] stream/xpp parser
Date Wed, 10 Aug 2005 07:11:37 GMT
[AARGH - I hate top-posting!]

There are no current plans to make digester work with any kind of "pull"
parser.

What exactly would be the purpose of this? Generally, users of Digester
don't care that it uses SAX internally; they just tell digester to
"parse that file" and a tree of objects are returned without the user
caring what xml api is used under the hood.

All modern JVMs come with xml parsers that support SAX, and I don't see
any performance benefits for Digester to work with a pull api rather
than SAX. I guess it means that when users write custom rules they could
somehow use pull rather than the "push" concept; but I expect that would
require a radical rework of the Rule API which certainly isn't going to
happen in a stable library.

Can you explain why support for a streaming api would be useful?

Cheers,

Simon

On Tue, 2005-08-09 at 18:26 +0200, Olivier Lamy wrote:
> I found how to use with xpp3 :
> http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/src/java/sax
> 2_driver/org/xmlpull/v1/sax2/Driver.java?rev=1.5
> <http://www.extreme.indiana.edu/viewcvs/~checkout~/XPP3/java/src/java/sa
> x2_driver/org/xmlpull/v1/sax2/Driver.java?rev=1.5&content-type=text/vnd.
> viewcvs-markup> &content-type=text/vnd.viewcvs-markup
>  
> But not for stream.
> 
> -----Message d'origine-----
> De : LAMY Olivier [mailto:Olivier.LAMY@accor.com] 
> Envoyé : mardi 9 août 2005 18:08
> À : Jakarta Commons Users List
> Objet : [Digester] stream/xpp parser
> 
> 
> 
> Hi all, 
> Is there any planned feature to use digester with javax.xml.stream or 
> xpp3 parser ? 
> Thanks, 
> Olivier 
> 
> 
> This e-mail, any attachments and the information contained therein
> ("this message") are confidential and intended solely for the use of the
> addressee(s). If you have received this message in error please send it
> back to the sender and delete it. Unauthorized publication, use,
> dissemination or disclosure of this message, either in whole or in part
> is strictly prohibited.
> 
> ********************************************************************** 
> Ce message electronique et tous les fichiers joints ainsi que  les
> informations contenues dans ce message ( ci apres "le message" ), sont
> confidentiels et destines exclusivement a l'usage de la  personne a
> laquelle ils sont adresses. Si vous avez reu ce message par erreur,
> merci  de le renvoyer a son emetteur et de le detruire. Toutes
> diffusion, publication, totale ou partielle ou divulgation sous quelque
> forme que se soit non expressement autorisees de ce message, sont
> interdites.
> 
> ********************************************************************** 
> 


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


Mime
View raw message