BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 06-17-2010, 07:13 AM   #1
prasadrajapaksha
Knows Where the Search Button Is
 
Join Date: Dec 2009
Location: Sri Lanka
Model: 9000
PIN: N/A
Carrier: Software Engineer
Posts: 21
Default 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.
Offline  
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


USA Windows VPS Server / RDP Server / VPS Hosting 12GB RAM + 400GB HDD picture

USA Windows VPS Server / RDP Server / VPS Hosting 12GB RAM + 400GB HDD

$27.99



USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD

$11.99



USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD -  1 Year picture

USA Windows VPS RDP Server/ Windows VPS Hosting - 4GB RAM + 150GB HDD - 1 Year

$129.88



Vollrath 72050 Cayenne 28 3/4

Vollrath 72050 Cayenne 28 3/4" x 13 3/4" Heat 'n Serve 4/3 Size Countertop Food

$285.00



New In Box MOXA NPort 5110 NPort5110 Serial Device Server picture

New In Box MOXA NPort 5110 NPort5110 Serial Device Server

$121.00



Wti Console Server + PDU CPM-800-1-EA picture

Wti Console Server + PDU CPM-800-1-EA

$550.00







Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.