XB1: Xml Pull Builder V1 Design Notes Aleksander Slominski
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
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
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 Types Packages61211 Classes and interfaces Exceptions Public methods in: Element Attribute N/A8 Processing Instruction N/A5 Builder22N/A82012 Document TODO: 10 based on