Skip to content

Instantly share code, notes, and snippets.

@jpcaruana
Created December 22, 2010 14:12
Show Gist options
  • Save jpcaruana/751556 to your computer and use it in GitHub Desktop.
Save jpcaruana/751556 to your computer and use it in GitHub Desktop.
utilisation de XStream
public class MonObjet {
private int monAttributEntier = 3;
private String monAttributString = "attribut";
public static void main(String[] args) {
System.out.println(new XStream().toXML(new MonObjet()));
}
}
<MonObjet>
<monAttributEntier>3</monAttributEntier>
<monAttributString>attribut</monAttributString>
</MonObjet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment