1 Welcome to CookXml Wiki
This wiki site is under construction. Please also check the
CookXml web site if you for examples and references.
1.1 What is CookXml?
CookXml is a powerful general purpose dynamic XML data binding tool (
unmarshalling only). Unlike
JAXB, CookXml loads user defined tag libraries at runtime to convert XML documents into Java Object. The result is a highly configurable yet efficient XML parser.
Another big difference CookXml has with JAXB is that CookXml does not use XML schema at all. JAXB uses XML -> Java design approach, but CookXml uses Java -> XML design approach. It is debatable which approach is better in general. However, if one already have Java classes to begin with, as in case of Swing component, clearly using CookXml is more straight foward.
CookXml does unmarshalling only because it is the more difficult part of data binding. Most developers can easily output Java objects into XML format, but stumble at the reverse direction. Also, CookXml has the capability of executing of script languages embeded inside XML, which is not suitable for marshalling.