Need some help in parsing this XML in J2ME platform

前端 未结 2 1084
无人共我
无人共我 2020-12-11 17:43

Below mentioned is my XML,




        
2条回答
  •  执念已碎
    2020-12-11 18:18

    If your target devices support SAX from JSR 172, you should go with this parser. It will reduce your app's final jar size (no libs imported). There is a good sample at http://www.developer.nokia.com/Community/Wiki/JSR_172:_XML_Parsing_Example It actually unmarshalls the XML into Java objects.

    After you feel confident you may try my generic approach to unmarshalling in Java ME at http://smallandadaptive.blogspot.com.br/2010/11/xml-data-binding.html

提交回复
热议问题