Jon: Using dom4j to generate XML for api.