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

Native Development

Reply
Contributor
Posts: 39
Registered: ‎04-23-2011
My Device: N/A

Creating, Editing, and Accessing XML-Like file

Hello,

 

I am a beginner dev. Could someone please direct me to some resources? I want to achieve a few things with my new app.

 

In one part of the app, I want to create a form to write data to a file in XML or similar language.  In another part of the app, I want to be able to read the data file.

 

What code/language would I use to achieve this?

 

Also, how would I be able to make the data file stored in the user's file system (for exporting and access after app is closed)

 

Thank you very much.

 

AwesomeDev

 
 
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C

Re: Creating, Editing, and Accessing XML-Like file

You can use QXmlStreamReader for reading XML, and QXmlStreamWriter for write.

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C

Re: Creating, Editing, and Accessing XML-Like file

And for store app's persistent data, use QSettings ( Qt library )
---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
Developer
Posts: 146
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C

Re: Creating, Editing, and Accessing XML-Like file

You have to view Qt API's doc in http://qt-project.org/doc/qt-4.8/qxmlstreamreader.html
---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
BlackBerry Development Advisor (Retired)
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Creating, Editing, and Accessing XML-Like file

Did you make progress on this?

If so, please mark this thread complete by accepting one or more of the posts as solution.

If not, where are you stuck and what help do you need?

 

Stuart

BlackBerry Development Advisor (Retired)
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Creating, Editing, and Accessing XML-Like file

AwesomeDev:  how frequently are you able to monitor the forums?

 

Contributor
Posts: 39
Registered: ‎04-23-2011
My Device: N/A

Re: Creating, Editing, and Accessing XML-Like file

Quite frequently, why do you ask?

BlackBerry Development Advisor (Retired)
Posts: 499
Registered: ‎05-07-2012
My Device: developer

Re: Creating, Editing, and Accessing XML-Like file

Ok, good.

As per my previous post in this thread, can you either close the thread by accepting a solution, or follow up with your current issue on this topic?

-- thanks.

 

Stuart