开发者

How to parse XML in Blackberry? [duplicate]

开发者 https://www.devze.com 2023-03-27 01:30 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Parse XML file on BlackBerry
This question already has answers here: Closed 11 years ago.

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?
0

精彩评论

暂无评论...
验证码 换一张
取 消