View Source

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:
{code}
public class Job {
public boolean prioritized;
}
{code}
With XStream, we can serialize object of this class to XML like below:
{code}
new XStream