Created
January 28, 2016 09:00
-
-
Save Crydust/20a8f6465c0187a7f41f to your computer and use it in GitHub Desktop.
Printing an object as Xml
This file contains 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
import java.beans.XMLEncoder; | |
try (XMLEncoder xmlEncoder = new XMLEncoder(System.out)) { | |
xmlEncoder.writeObject(viewReport); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment