样例代码
public static void main(String a[]){ //Other pre omitted FileOutputStream fos = new FileOutputStream("c:\yourfile",true); //true specifies append Foo f = new Foo(1, "booo", new Bar(42)); xs.toXML(f,fos);}
样例代码
public static void main(String a[]){ //Other pre omitted FileOutputStream fos = new FileOutputStream("c:\yourfile",true); //true specifies append Foo f = new Foo(1, "booo", new Bar(42)); xs.toXML(f,fos);}