×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    5

    Using kxml package in J2ME!! PLEASE HELP

    Hello,

    I need an answer to my question very urgently please.

    I am writing a MIDP application involved in sending and receiving
    messages to/from the Server with other functionalities where each functionality
    is an XML request to the server.

    For sending messages I am creating messages in a particular XML Format
    and for receiving message I have the XML Parser to parse the XML response received.

    For this I am using the kxml package in my application to create and read messages.

    Now using this package in my application, increases the size of the
    my application.
    So when the client downloads the application,this may prove too heavy to run on
    his cell as the application included the kxml package which takes about 35K of memory.

    Certain phones have only 50 K of memory.

    The messages I need to send to the server are in a particular XML format
    and this format is stored on my client.
    I may have 10 different formats of messages on my client or more in the future.

    Then I may receive a response from the server which needs to be parsed
    The Parser is on my client.

    How can I send and receive messages with the least amount of processing on the client
    and using the kXML package?

    One solution I can think of is this:

    If a client wants to send a message to the server :

    1) He will enter the text contents and press 'send'.
    2) The 'Send' command will download the class that is required
    to create the message in a certain XML format.
    3) This class will create the message and send it to the server.

    This way I dont need to store the XML Send-Message Format on my client.
    The XML Send-Message Format is on the server,which gets downloaded onto the
    client.

    But then again,the class that is downloaded to create the XML Send-Message
    may contain the kxml package.

    So again this may increase the size of the file that needs to be downloaded.

    Can any one propose a solution to overcome this problem.

    An urgent response is much much appreciated.

    ajayluthria@hotmail.com

  2. #2
    Registered User
    Join Date
    Mar 2007
    Posts
    1

    Re: Using kxml package in J2ME!! PLEASE HELP

    By replacing the tag and attribute names and values with tokens you can reduce length to less than 70 bytes

  3. #3
    Regular Contributor
    Join Date
    Aug 2006
    Location
    Rawalpindi, Pakistan
    Posts
    486

    Re: Using kxml package in J2ME!! PLEASE HELP

    hello vinay@gwn-inc.com welcome to nokia discussion board. u mean to say by giving small tag name and attribute names u can reduce the size?
    Regards
    Nouman

  4. #4
    Regular Contributor
    Join Date
    Jul 2005
    Posts
    79

    Re: Using kxml package in J2ME!! PLEASE HELP

    So when the client downloads the application,this may prove too heavy to run on his cell as the application included the kxml package which takes about 35K of memory.

    Certain phones have only 50 K of memory.

    The messages I need to send to the server are in a particular XML format
    and this format is stored on my client.
    I may have 10 different formats of messages on my client or more in the future.

    Then I may receive a response from the server which needs to be parsed
    The Parser is on my client.

    How can I send and receive messages with the least amount of processing on the client and using the kXML package?
    You can use obfuscator to reduce the size of the jar.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×