How to parse XML in Blackberry? [duplicate]
Possible Duplicate:
Parse XML file on BlackBerry
Can anyone tell me how to parse this xml...
I am new to blackberry app development. I don't know how t开发者_Python百科o parse xml.<Main tag>
<subtagfirst>data</subtagfirst>
<subtagsec>data1</subtagsec>
<subtagthird>data1</subtagthird>
<Main sub tag>
<Main sub tag 1>
<sub tag1>
<id>1</id>
<name> abc</name>
</sub tag1>
<sub tag2>
<data1>xyz</data1>
<data2>pqr</data2>
</sub tag2>
</Main sub tag 1>
</Main sub tag>
</Main tag>
Thanks.
- Use KXML and parse the XML. Look at this article, KXML parsing.
OR
- Use SAX Parser. Look at this article, How to use the XML Parser?
精彩评论