public static void saveAsXML(NSObject root,OutputStream out) throws IOException {
  OutputStreamWriter w=new OutputStreamWriter(out,"UTF-8");
  w.write(root.toXMLPropertyList());
  w.close();
}

public static void saveAsXML ( NSObject root , OutputStream out ) throws IOException { OutputStreamWriter w = new OutputStreamWriter ( out , "UTF-8" ) ; w . write ( root . toXMLPropertyList ( ) ) ; w . close ( ) ; }
saves a property list with the given object as root in xml format into an output stream .
