| ||||
streaming and incremental building of XML node treeHow to combine best of SAX and DOM when working on SOAP motivation DOM API (or one of its alternatives) is easier to use for document/literal encoding but streaming is essential for good performance ... solution: two different modes of operation
one goal: have uniform API for both cases (stream is parsed as much as needed to walk tree) second goal: expose enough information in API so app can control tree creation skipping parts of it or using XmlPullParser directly (no tree nodes created) parts of tree can be detached for later GC handling fragments transparently add all ancestro namespace-prefix declarations XmlPullNode
isFinished()
finishParsing()
XmlPullParser asPullParser
XmlPullNodeWalker asNodeWalker
XmlPullNodeWalker
Object nextNode(),
Object nextNodeChild(),
String nextNodeText(),
XmlPullNode nextNodeTag()
XmlPullParser asPullParser();
DOM working as front partial tree - mirrors what is in XmlPullNode however operations directly on XmlPullNode are _not_ mirrored to DOM!!! Possibly related: PullDOM http://www.prescod.net/python/pulldom.html created sept 20 2002 cst [2002/9/20 CST] permalink |
This blog is about: Find more
about
Blogroll:
Projects::
RSS
Filter Entries: |
Disclaimer: personal opinions and observations that may or may not be taken seriously, or even based on shared reality and generally are very unreliable and personal and snapshots of volatile writer mind ...
NOTE: THIS PAGE IS UNDER CONSTANT DEVELOPEMENT