XNI does have a pull parser configuration which allows parsing of XML in pull
fashion. When parsing in pull fashion it is the application that is in control.
Application tells the parser to consume more of the input by pulling the next
bit of data out of it (in the form of event.) Currently the drawback with
PullParser configuration is that it doesn't guarantee that single call to parse
will generate only one event. Using this technique one registers
DocumentHanlder as done with the SAX/XNI and using the same DocumentHandler
information is pushed to the application. So strictly speaking it is not a pure
pull parser. One advantage is that you are working with the APIs you are
already familiar with and driving the over all parsing in pull fashion. Somehow
there hasn't been much response from the user community with this approach.
There is separate JSR (JSR 173) going on which is trying to standardize the
APIs for pull parser.
XNI is based on push model. In push model the application is passive.
It works in response to calls that it gets from the parser. As it is easier to
hand over control than it is to obtain, It should be easier and more efficient
to build a push parser out of a pull parser than it is to build a pull parser
out of a push parser. There has been some difficulties (performance issues)
when trying to build pull layer on top of XNI. So currently XNI and pull are
not best when together. Sporadically there has been discussion in the past as
how to glue XNI and pull but nothing concrete yet. So stay tuned.
Neeraj
Neeraj
----- Original Message -----
From: Bruno Sanz Marino <[EMAIL PROTECTED]>
Date: Wednesday, May 28, 2003 11:40 pm
Subject: xni pull parser
> Hi
>
> Do you know of any xni-pull parse techniques article on the web?
>
> The doc brings not so many information
>
> Thank you
>
> Bruno Sanz
>
> ------------------------------
> Tiscali ADSL Libre
> http://adsl.tiscali.es/index.php3?produc=libre&did=&despl=&did=adl-
> 7380017
> ¡¡¡VELOCIDAD 24h. DESDE SÓLO 16,95 ?/mes + TIEMPO DE CONEXIÓN!!!
> Con las mismas prestaciones que una línea ADSL estándar
> ------------------------------
>
>
>
>
> --------------------------------------------------------------------
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]