import java.util.*;
private Vector list;
list = v;
}
}
========================================
import java.io.*;
import java.util.*;
import org.exolab.castor.xml.Marshaller;
import org.exolab.castor.xml.*;
public class test {
public static void main(String args[]) {
// Create a new TestObj
Vector v = new Vector();
v.add("Element 1");
v.add("Element 2");
TestObj test = new TestObj(v);
// Create a File to marshal to
try {
FileWriter writer = new FileWriter(new File("D:\\test.xml"));
Marshaller.marshal(test, writer);
}
catch (MarshalException ex) {
ex.printStackTrace();
}
catch (ValidationException ex) {
ex.printStackTrace();
}
catch (IOException ex) {
ex.printStackTrace();
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<test-obj/>
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
