Re: Pulling v/s Pushing
"Nikhil C. Khedkar" <[email protected]>
| Newsgroups | gmane.text.xml.xmlpull.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Alec,
those links proved very useful in knowing what is
pulling v/s pushing. Thanks for that. But I still have
few questions
1) what makes pulling faster than pushing? I mean if
your program gets the control from parser, how does it
help? Where was the parser lagging?
2) Why do the comaprsion with SAX2 vary so much and
why do pull parser loose it's edge for large
documents?
3) What is roundtrip?
Thanks,
Nikhil
--- Aleksander Slominski <[email protected]>
wrote:
> "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
>
>
>
> ------------------------ Yahoo! Groups Sponsor
>
> To unsubscribe from this group, send an email to:
> [email protected]
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com