logo       

Write the kdom tree to XML file: msg#00008

java.enhydra.kxml

Subject: Write the kdom tree to XML file

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


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise