Save Dom XML Document
Please Login to Remove!
Hi,
Please see following code.
HttpConnection connection = null;
InputStream inputStream = null;
connection = (HttpConnection) Connector.open(strServiceURL, Connector.READ_WRITE, true);
inputStream = connection.openInputStream();
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = factory.newDocumentBuilder();
Document document = builder.parse( inputStream );
// ------------------------------------------------
Here finally I have Dom.Document object which include my XML file where I have downloaded it from the internet. Now I want to save it in to my device memory. Is there any way to do that using above inputstram or document.
Thank you.
Prasad.
|