Re: Pulling v/s Pushing

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

> Hi Alec,
>   thanks for your reply. But, sadly, I am still not
> very clear abt this pulling v/s pushing. Can you
> provide a beginner's guide or should I say a dummy's
> guide :-).

hi,

do you know SAX2? - you should read one of many
available books or online tutorials. run some examples.
then look on samples at www.xmlpull.org and run them with
one of XmlPull implementations XPP3 or kXML2,
for good start see:

http://www.javaworld.com/javaworld/jw-04-2002/jw-0426-xmljava3.html
http://www.saxproject.org/
http://www.xmlpull.org/v1/download/unpacked/doc/quick_intro.html

then see what is that you want to try to do with XML
and what works best for you.

if streaming is not that important then consider
DOM/JDOM/etc. or if you need to work with objects
represented in XML consider XML schemas databinding such
as castor, JaxME etc.
http://www-106.ibm.com/developerworks/xml/library/x-bindcastor/
http://jaxme.sourceforge.net/docs/site/

however if you care about performance
take look also on some of XML benchmarks:
http://www-106.ibm.com/developerworks/xml/library/x-injava/index.html
http://www.sosnoski.com/opensrc/xmlbench/
http://www.pankaj-k.net/xpb4j/

in general push pasrsing is very well suited for filtering
and pull parsing for transforming XML content but
your mileage may vary and after all it is only you who
can decide what are the best tool for the job
(but make sure to know your tools :-)).

good luck,

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.