May 2001
Intermediate to advanced
1088 pages
30h 13m
English
The Koala Bean Markup Language (KBML) writes beans to XML using a Java-specific format. Specifically, it writes out beans using a <bean> tag and writes bean properties using a <property> tag. Because KBML uses its own specific XML format, it isn't suitable for most XML data exchange. It makes an excellent serialization tool, however.
You can get the latest version of KBML from http://www-sop.inria.fr/koala/kbml/.
Listing 24.4 shows a program that writes a Person object out to an XML file using KBML.
package usingj2ee.xml; import java.io.*; import fr.dyade.koala.xml.kbml.*; public class KoalaWrite { public static void main(String[] args) { try ... |
Read now
Unlock full access