How do I read a JavaBean from an XML file using XMLDecoder?
Author: Deron Eriksson
Description: This Java tutorial shows how to read a JavaBean from an XML file using Java's XMLDecoder class.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 2.0 (Eclipse 3.3.0)


Page: < 1 2

(Continued from page 1)

When we execute XmlDecodeFromFile, we can see in the console that the expected results are displayed.

Console Output

true
xml is cool
one
two
three
Page: < 1 2