Discussion Board

Results 1 to 2 of 2
  1. #1
    Hi peoples.

    In the kXML source code I see a lot of strings are being created. Is that a good idea? I am thinking about creating my own XML parser that uses char array instead. I plan to use a char array which would be reused instead of creating a new string everytime. Also, I looked at API for Jsr172 even it uses strings instead of char arrays.

    Personally, I believe that strings are a J2ME applications worst enemy. Thus, I am considering on writing a parser that reused data rather than create the many strings like kXML, and I assume Jsr172 API does too.

    So, my question is this, is it worth writing my own XML parser since there is jsr172? Regardless, would it be an excellent example to so as demo code to employers; I would like to move out to CA because there are lots of J2ME jobs there?

  2. #2
    Regular Contributor ncerezo2's Avatar
    Join Date
    Aug 2006
    Location
    Spain
    Posts
    63
    There're far more phones out there without Jsr172 than phones with it. That's a good reason for not using Jsr172, unless your're builing a very targeted application and you can require that kind of things. If you plan to run an application in the broader spectrum of phones possible, you must restrict your requirements to CLDC 1.0 and MIDP 2.0.
    But that leaves us with the question, kXML or custom?
    kXML is reasonably widely spreaded, and proven. I've not used it myself, nor looked at the source code. But you are right, the bad use of String objects is a bad enemy for any Java application, but a lot more to a Java Micro application.

    Anyway I will think it twice before doing it.
    -----------------------
    Narciso Cerezo
    CTO Elondra

    OpenBaseMovil
    http://www.openbasemovil.org
    The Framework for enterprise class J2ME applications with a pure J2ME relational database engine and much more.

Similar Threads

  1. Parsing wbxml file to xml file using kxml parser
    By ramyashashe in forum Mobile Java General
    Replies: 18
    Last Post: 2010-05-17, 15:56
  2. XML Parser in C++
    By mrinal_malhotra in forum Symbian C++
    Replies: 4
    Last Post: 2008-11-10, 13:22
  3. PC Suite error: (Code: Init IMediaControl2) HELP?!
    By chunkyspudmonkey in forum General Development Questions
    Replies: 29
    Last Post: 2008-06-30, 11:47
  4. Anybody ported TinyXML or Expat or some other XML parser?
    By doctordwarf in forum Symbian C++
    Replies: 2
    Last Post: 2003-11-10, 11:53
  5. Replies: 0
    Last Post: 2002-09-30, 15:54

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved