Java XML Interpreter is an open-source software designed for interpreting XML in a general-purpose environment. It is easy to use and install, making it ideal for developers working with XML.
Currently, CookXml has an implementation that solely performs unmarshaling, although the marshaling aspect is anticipated to be added. The most significant advantage of CookXml is how it unmarshals objects from XML using an interpretation approach. It loads user-defined tag libraries at runtime to convert XML documents into Java objects - this results in a highly configurable and efficient XML parser.
CookXml is not only great for XML data binding but also proves useful in creating parsers for scripts written in XML. It uses a set of delegates - creators, setters, adders, and converters - to interpret the XML. These delegates come together to form a tag library. To use CookXml, one typically creates a tag library that controls how objects are created, modified, and linked together.
Objects are constructed using factory objects whenever a tag is encountered. Their attributes are set through default setter functions, usually when an attribute is identified. Objects can be added to their parent objects either in prefix or postfix order. With the default constructor for the object, variables/setter functions, and an add function, most things can be done, thus making it very simple to write a tag library. Overall, CookXml is a handy tool to have in your toolkit.
Version 3.0.2: N/A