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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Contributor
AwesomeDev
Posts: 38
Registered: ‎04-23-2011
My Carrier: 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

 
 
Please use plain text.
Developer
blackqtcoder
Posts: 136
Registered: ‎05-18-2012
My Carrier: Telefonica Spain

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

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

---------------------------------------------------------------
Duantox founder, TapyHold developer
TapyHold multimedia scrapbook
Please use plain text.
Developer
blackqtcoder
Posts: 136
Registered: ‎05-18-2012
My Carrier: Telefonica Spain

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

And for store app's persistent data, use QSettings ( Qt library )
---------------------------------------------------------------
Duantox founder, TapyHold developer
TapyHold multimedia scrapbook
Please use plain text.
Developer
blackqtcoder
Posts: 136
Registered: ‎05-18-2012
My Carrier: Telefonica Spain

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
---------------------------------------------------------------
Duantox founder, TapyHold developer
TapyHold multimedia scrapbook
Please use plain text.
BlackBerry Development Advisor
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Carrier: 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

Please use plain text.
BlackBerry Development Advisor
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Carrier: developer

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

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

 

Please use plain text.
Contributor
AwesomeDev
Posts: 38
Registered: ‎04-23-2011
My Carrier: N/A

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

Quite frequently, why do you ask?

Please use plain text.
BlackBerry Development Advisor
smacmartin
Posts: 499
Registered: ‎05-07-2012
My Carrier: 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

Please use plain text.