Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
Posts: 147
Registered: ‎09-10-2008
My Device: Not Specified

How to Append the Data in the XML File?

Can any one tellme how to edit and delete the XML file content?
Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: How to Append the Data in the XML File?

[ Edited ]
What XML file are you referring to?
Message Edited by RexDoug on 10-03-2008 03:55 PM
Developer
Posts: 1,415
Registered: ‎07-30-2008
My Device: Not Specified

Re: How to Append the Data in the XML File?

I think it is a generic question. The OP and sara84 may work together and have been asking a variety of quesitons on

related topics. One of them asked a question that sounded like a general design question or RFP and they were offered

fee based assistance. I've been giving them design ideas for free just because some of the topics create really

annoying apps if not resolved early on.

 

Could the OP explain what data they have, what they want to do with it, and what they have tried that didn't quite work?

Is the issue serializing a DOM or how to open a file for writing?

 

 

Developer
Posts: 147
Registered: ‎09-10-2008
My Device: Not Specified

Re: How to Append the Data in the XML File?

How to open the file and perform read and write operation ?
BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to Append the Data in the XML File?

You can use a FileConnection for this.  Have a look at the fileexplorerdemo included with the BlackBerry JDE for an example.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Developer
Posts: 147
Registered: ‎09-10-2008
My Device: Not Specified

Re: How to Append the Data in the XML File?

I Cant read the XML file in the Project explore. whenever I use File Connnection I am getting NO URL Exception. 

the file path like this "/XMLREAD/src/test.xml" .

 

BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to Append the Data in the XML File?

You need to supply a complete URL with protocol information.  For example, if you are reading a file from the micro SD card on the BlackBerry the URL could look like file:///yourDirectory/youFile.xml.
Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker
Highlighted
New Developer
Posts: 43
Registered: ‎08-23-2008
My Device: Not Specified

Re: How to Append the Data in the XML File?

Absolutly correct. You have given for reading a file from the micro SD card. Could you please give an example for accessing and appending the the data in xml file which is located in cod file.
BlackBerry Development Advisor
Posts: 15,752
Registered: ‎07-09-2008
My Device: BlackBerry PRIV
My Carrier: Bell

Re: How to Append the Data in the XML File?

Sure thing.

 

How To - Add plain text or binary files to an application
Article Number: DB-00148

http://www.blackberry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To_...

Mark Sohm
BlackBerry Development Advisor

Please refrain from posting new questions in solved threads.
Problem solved? Click the Accept As Solution button.
Found a bug? Report it using Issue Tracker