AepXML


A peice of code is optimal when the complexity of the code matches the complexity of the functionality being created. XML seems very simple to me; DOM/SAX does not.

AepXML attempts to simplfy the usage of XML. It is not intended to be an exhaustive XML library. It is designed specifically for the task of converting Java objects into XML strings and back.

Recognizing that there are some gory details included in the XML specification this library works as a wrapper of DOM/SAX as opposed to a replacement of it.

In its essence the AepXML library consists of 2 static methods attached to the XML class: XML.toXML, which converts a Java object into an XML string and XML.toObject, which converts an XML string into a Java object.

By default, AepXML makes use of the JavaBean spec in order to accomplish the conversion. However, the default behavior can be overridden by creating a custom XMLizer class and then registering the custom XMLizer with XML.addXMLizer.

com.aepryus.xml