Re: converting complex object to xml data file

2007-03-23 Thread Chris Lamey
In your first mail about this you listed Parent and Child objects as example objects that you're mapping in iBATIS. If you use xstream, which just writes Java to XML, you don't need to write another set of objects, you can use the same ones you use in iBATIS. The example Meindert used just aliase

Re: converting complex object to xml data file

2007-03-23 Thread Utkarsh Ahuja
Thanks for your response Meindert. I am trying to stay away from a external Java Object to XML as I would need to have the backing bean to create the mapping. If I could just use the tables directly from the database and convert them over to XML, I eliminate the need to have the backing beans and

RE: converting complex object to xml data file

2007-03-22 Thread Meindert
Have you thought about using xstream ? import com.thoughtworks.xstream.XStream; import org.dom4j; XStream xstream = new XStream(); xstream.alias("parent", Parent.class); xstream.alias("childeren", List.class); xstream.alias("child", Child.class); org.dom