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

Web and WebWorks Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 7
Registered: ‎09-18-2013
My Device: Z10
My Carrier: T-MOBILE
Accepted Solution

Saving and editing data with XML

Hello, I'm new developer and trying HTML5.

Theres some difference to use XML to save, load and editing data? How I can do this in a easy way for BlackBerry 10?

Thank you for the help!

BlackBerry Development Advisor
Posts: 769
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Saving and editing data with XML

Hello,

 

I found a great tutorial on working with XML in JavaScript. It may not cover every piece of what you're looking for, but it is pretty thorough.

 

http://oreilly.com/catalog/jscript5/chapter/ch21.pdf

 

On a side note, I always prefer to work with JSON over XML. I think it's cleaner, and just easier as a whole. 

New Contributor
Posts: 7
Registered: ‎09-18-2013
My Device: Z10
My Carrier: T-MOBILE

Re: Saving and editing data with XML

Hi chadtatro, thank you for the tutorial, is what I was looking for. I think is more easy develop the backend with html5 than cascades, because this I'm studying and trying found new forms to do some things.

Why JSON is better than XML? More easy? You also have some tutorial for JSON?

Best regards!
 

Highlighted
BlackBerry Development Advisor
Posts: 769
Registered: ‎10-01-2009
My Device: All
My Carrier: N/A

Re: Saving and editing data with XML

I find JSON is just cleaner to work with personally.

 

Lots of tutorials out there, here's one: http://www.json.org/js.html

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Saving and editing data with XML

A big benefit of JSON is also that it can minimize the amount of data being sent. JSON can be less readable without all the descriptive <element> tags, but the "minimal" approach to structure means less bytes are being transferred across the wire.
http://www.json.org/xml.html

Of course, you can write an inefficient JSON structure and an efficient XML structure, but in general JSON will get you more compact data. Both are simply structures for holding data.

Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.