I am the author of the FormattedDataSet API. Primarily the API is used to get tabular data (result sets, collections, and Arrays) into text (xml, html, form letters etc). In working with tabular data I realized that most data is easy to get into an array (Object[][]), so over time I have come up with utilities that help manipulate arrays.
The link below is not in my api as it still needs some work, however it is pretty straightforward. Here is the link:
http://cvs.sourceforge.net/viewcvs.py/fdsapi/fdsapi/Examples/HTTPUtils/XMLToArrayConverter.java?rev=1.3&view=auto Below is usage code, which is similar to the code in the main method in the above class. Feel free to take the class code and modify it to your needs.