If you are using Internet Explorer, please remove blackberry.com from your compatibility view settings.

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
AwesomeDev
Posts: 39
Registered: ‎04-23-2011
My Device: N/A
My Carrier: N/A

Creating, Writing and Accessing XML-Like files

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
Zingam
Posts: 187
Registered: ‎05-09-2012
My Device: Playbook, Z10 LE

Re: Creating, Writing and Accessing XML-Like files

There at least two libraries that support xml.

Here is a list of libraries supported on PB:

https://bdsc.webapps.blackberry.com/native/documentation/com.qnx.doc.native_sdk.devguide/com.qnx.doc...

I cannot give you examples now but choose a library: expat or libxml2 and google for documentation.

Please use plain text.
Developer
blackqtcoder
Posts: 145
Registered: ‎05-18-2012
My Device: PlayBook & STL100-1 LE Z10 & Dev Alpha C
My Carrier: Telefonica Spain

Re: Creating, Writing and Accessing XML-Like files

[ Edited ]

In Qt, you will find QXmlStreamReader (for reading XML) and QXMLStreamWriter ( for writing XML)

---------------------------------------------------------------
Leandro Cerdan - Duantox Apps
BlackBerry Elite dev
TapyHold, Built for Blackberry multimedia scrapbook
Please use plain text.
BlackBerry Development Advisor (Retired)
mgoulet
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Creating, Writing and Accessing XML-Like files

Hi AwesomeDev,

 

Have you gotten any further following these suggestions?

 

Martin

 

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

Re: Creating, Writing and Accessing XML-Like files

Unfortunately not. Still doing some research on which dev environment i want to use.

Please use plain text.
BlackBerry Development Advisor (Retired)
mgoulet
Posts: 329
Registered: ‎05-07-2012
My Device: BB Alpha
My Carrier: N/A

Re: Creating, Writing and Accessing XML-Like files

Ok,

 

Let me know if you have any specific questions;

 

Good luck!

 

Martin

Please use plain text.