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


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: 5
Registered: ‎05-06-2012
My Device: bold 9900
My Carrier: 6473095777

XML Parser Recommendations?

Can anyone recommend a good, easy to use XML parser?

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: XML Parser Recommendations?

The PlayBook OS and BB10 come with libxml2 built in.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Developer
Posts: 188
Registered: ‎01-27-2012
My Device: playbook
My Carrier: ...

Re: XML Parser Recommendations?

There is also QtXml if your using Qt. http://qt-project.org/doc/qt-4.8/qtxml.html

Cheers,

Jon

New Contributor
Posts: 5
Registered: ‎05-06-2012
My Device: bold 9900
My Carrier: 6473095777

Re: XML Parser Recommendations?

[ Edited ]

Thanks guys, much appreciated. One more...

 

Anyone know if BB10 comes with built in support for creating HTTP requests to retrieve that XML? Or how would I go about doing that?

Developer
Posts: 1,807
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.3.2.858, Z10 (STL100-3)-10.3.1.2576, Z30 (STA100-5)-10.3.1.2582, Passport (SQW100-1)-10.3.1.2576, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: XML Parser Recommendations?

Use libcurl, built in, and take the returned data and pass it to whatever XML parser you choose to use.
---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
New Developer
Posts: 29
Registered: ‎02-26-2012
My Device: Playbook, Bold 9900
My Carrier: Telus

Re: XML Parser Recommendations?

[ Edited ]

I find for quick, simple, portable, XML parsing RapidXML is pretty good. It is just header files and is used by Boost:: PropertyTree.

Highlighted
Retired
Posts: 54
Registered: ‎10-26-2011
My Device: Playbook
My Carrier: Rogers

Re: XML Parser Recommendations?

For a good example on how to use libcurl, you can go to github and look up the NDK-Samples for BlackBerry.  There you will find a sample called HttpProxy.   Please have a look at that.  it checks the proxy settings which might be a potential GOTCHA on general systems.