I have used the scomp
tool from XMLBeans to generate java classes and then populated the fields in an XmlObject (I wrote this code some time ago). I now need to convert this object into the Element class used by the XOM library.
Is there an easier way than by traversing the XmlObject
using an XmlCursor
and then adding child nodes to the target Element
as you go? I had a look at possibly using some of the org.w3.dom.*
classes but I'm having trouble finding something that will be easily translatable between the two libraries.