I'm trying to have my own descriptors generated, and the xml stuff in the j2eeDom package seems somewhat badly thought out (well, to be honest, it doesn't seem thought out at all, let alone badly).
I might be missing something, but there seems to be no way currently to create attributes for xml data objects. Even worse, there is a method called 'createAttributeOn' which creates a child element.
So the questions that come to mind are:
1) Why the ridiculous naming scheme? An element is not an attribute, and mixing the two is confusing and misleading.
2) Why this separate API instead of just using JDOM in some way to allow callers to arbitrarily manipulate the xml for a descriptor? Why not extend JDOM classes or provide wrappers around them that still allow access to the underlying elements?