cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karich <peat...@yahoo.de>
Subject Re: Datanode -> XML
Date Sat, 10 Mar 2007 14:20:13 GMT
Hallo!

I think xstream is very easy to use and it works fine for me.

E.g. use:

XStream xs = new XStream(new DomDriver());
//Xpp instead dom would be faster ...

OutputStream os;

try {
    os = new FileOutputStream(xmlFile);
    xs.toXML(obj, os);
} finally {
    os.close();
}

For deep object dependency I run into memory problems, but
for simple property based object and one or two relations it is very
good and fast.

Bye, Peter.



	
		
___________________________________________________________ 
Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de

Mime
View raw message