Created
December 22, 2010 14:12
-
-
Save jpcaruana/751556 to your computer and use it in GitHub Desktop.
utilisation de XStream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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())); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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