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
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.

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.