Write the kdom tree to XML file

shiaoyui kwong <[email protected]> Tue, 25 Mar 2003 00:53:41 -0800 (PST)
Newsgroups gmane.comp.java.enhydra.kxml
Message-ID <[email protected]>
Hi,

Does anyone knew about how to write the kDom tree's
data onto the local drive file using MIDlet (MIDP
Programming) eg. writing the file to c:/hello.xml

I have tried on :

FileConnection conn
=(FileConnection)Connector.open("file:///c:/hello.xml");
OutputStream out = conn.openOutputStream();

XmlWriter writer = new XmlWriter(new
OutputStreamWriter(out));
			
doc.write(writer);

but it doesn't work as the MIDP is currently not
supported by FileConnection as well as file://
protocol.

Can anyone please give me some ideas of how should i
intialized my OutputStream as in this case?

Thanx very much =)



__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com