Presentation is loading. Please wait.

Presentation is loading. Please wait.

XB1: Xml Pull Builder V1 Design Notes Aleksander Slominski.

Similar presentations


Presentation on theme: "XB1: Xml Pull Builder V1 Design Notes Aleksander Slominski."— Presentation transcript:

1 XB1: Xml Pull Builder V1 Design Notes Aleksander Slominski

2 DOM APIs: we know (and love!) DOM 1/2/3 (third time’s the charm?)DOMthird time’s the charm JDOM DOM4J XOM Sparta XB1 –replaces XPP2 XmlPullNode

3 Another API: what the heck … … if you are happy with your current XML tree API performance, size and easy of use –ignore XB1 otherwise if you need: –simple API that is modeled after XML infoset –flexible builder that puts into XML tree only what user desires –ability to start walking tree as soon as XML arrives can stop creating tree at any moment (so called “streaming tree”) –ability to gradually create tree as soon as XML is available can bypass tree creation and work with XML pull parser directly allow to skip any part of tree without need build it in memory –to convert on the fly parts do XML input into your objects do data binding only for parts of XML input … but still needs to use XML tree API for other parts –or even can create dual XML/object data models –low memory overhead special ultra small J2ME version very similar to Sparta could be easily created you need those functions: –then use XB1

4 XB1 is simpler! JDOMDOM2XOMSpartaXB1 natural JAVA APIstandardized multiple languages bindings another natural JAVA API does not support namespaces. allows annotations XML infoset based, streaming tree, allows to keep any object in tree alongside XML Node Types10127213 Packages61211 Classes and interfaces 2017191514 Exceptions611331 Public methods in: Element8016+2532+202640 Attribute295+2517+5N/A8 Processing Instruction 203+2514+16N/A5 Builder22N/A82012 Document2217+2514+1725TODO: 10 based on http://www.cafeconleche.org/XOM/whatswrong/img78.htmlhttp://www.cafeconleche.org/XOM/whatswrong/img78.html


Download ppt "XB1: Xml Pull Builder V1 Design Notes Aleksander Slominski."

Similar presentations


Ads by Google