You Are Here:

Community: Developer Discussion Boards

#1 Old Using kxml package in J2ME!! PLEASE HELP - 2002-08-31, 10:11

Join Date: Mar 2003
Posts: 5
ajayluthria
Offline
Registered User
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
Reply With Quote

#2 Old Re: Using kxml package in J2ME!! PLEASE HELP - 2007-03-20, 08:31

Join Date: Mar 2007
Posts: 1
vinay@gwn-inc.com
Offline
Registered User
By replacing the tag and attribute names and values with tokens you can reduce length to less than 70 bytes
Reply With Quote

#3 Old Re: Using kxml package in J2ME!! PLEASE HELP - 2007-03-20, 09:55

Join Date: Aug 2006
Posts: 486
Location: Rawalpindi, Pakistan
Send a message via MSN to nicenouman
nicenouman
Offline
Regular Contributor
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
Reply With Quote

#4 Old Re: Using kxml package in J2ME!! PLEASE HELP - 2007-03-21, 06:43

Join Date: Jul 2005
Posts: 79
Send a message via Yahoo to aminuddin09
aminuddin09's Avatar
aminuddin09
Offline
Regular Contributor
Quote:
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.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia