Re: Pulling v/s Pushing

Aleksander Slominski <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
"Nikhil C. Khedkar" wrote:

> Hi all,
>   Can you tell me the exact meaning of this pulling
> mechanism used by the parser? What is pulling and
> pushing?

please take look on my technical report - it is a bit old but
it gives an example of the same task done both with SAX
and pull parser:
http://www.extreme.indiana.edu/xgws/papers/xml_push_pull/node3.html


> How do you comapre them, efficiencywise and
> memory usage wise?

SAX and XmlPull are both streaming XML parsing APIs
so efficiency wise from design point of view they are equivalent
in practice however it depends completely on API implementation
that you use (and for what kind of task implementation is coded for).

i would recommend to built sample/prototype application and try few
different APIs such as lower level (SAX, XmlPull), higher level (DOM,
JDOM) data binding (Castor, JAXME) and compare them to see
what is the most natural API and will be easier to maintain code
(smaller, easier to read, better reflect application design).

then and only then look on available API implementations and
chose the best that works for you (at least that is what should be
done if you have enough time to do right things  ..).

hope it helps,

alek
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.