You are viewing an old version (v. 1) of this page.
The latest version is v. 25, last edited on Feb 18, 2010
(view differences
|
)
view page history | view next version >>
view page history | view next version >>
We demonstrate usage of this tool with a simple tutorial. Assume a Job class below with a prioritized field indicating whether it is prioritized job:
public class Job { public boolean prioritized; }
With XStream, we can serialize object of this class to XML like below:
new XStream