BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 06-17-2010, 07:13 AM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Dec 2009
Location: Sri Lanka
Model: 9000
PIN: N/A
Carrier: Software Engineer
Posts: 21
Post Thanks: 0
Thanked 0 Times in 0 Posts
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


Thread Tools

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Samsung KM44C256AP-8 20-PIN DIP QTY 6
$24.0
Samsung KM44C256AP-8 20-PIN DIP QTY 6 pictureSamsung KM41C1000BP-8 18-PIN DIP 1 MEG 80NS DRAM QTY 8
$20.0
Samsung KM41C1000BP-8 18-PIN DIP 1 MEG 80NS DRAM  QTY 8 pictureNEC NEAX 1000 IVS vOICE Server-4DLCQ -4LCJ-4COTB-CP03-C
$499.0
NEC NEAX 1000 IVS vOICE Server-4DLCQ -4LCJ-4COTB-CP03-C pictureOEMAX SAMSUNG NX700 SERIES PLC CPU750B , X64D , NX-Y32RV, X32D , Y32T ,backplane
$425.0
OEMAX SAMSUNG NX700 SERIES PLC CPU750B , X64D , NX-Y32RV, X32D , Y32T ,backplane pictureLot of Samsung iDSC Phones
$119.95
Lot of Samsung iDSC Phones picture






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