×

Discussion Board

Results 1 to 5 of 5

Thread: XML in J2ME

  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    40

    Question XML in J2ME

    Hello guys, i'm working on this project
    Last edited by CSFYPMAIL; 2009-04-23 at 12:13.

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: XML in J2ME

    Hi,

    if you want to retrieve XML files (or any other resources) from your Java ME app, you can easily do it by using standard HttpConnection. Check this Wiki article for a sample code on how to use it:

    http://wiki.forum.nokia.com/index.ph...tps_in_Java_ME

    To parse XML, you need to use an XML parser, as this one: kXml.

    Pit

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    40

    Re: XML in J2ME

    its not gonna be someting to do with browsing the net
    Last edited by CSFYPMAIL; 2009-04-23 at 12:29.

  4. #4
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,406

    Re: XML in J2ME

    HttpConnection is not needed if you have to deal with locally stored resources.

    If XML is stored on device filesystem, then you'll need to use FileConnection API to read it. Otherwise, if you pack your XML within MIDlet Suite resources, then you can easily access it by using Class getResourceAsStream() method.

    Pit

  5. #5
    Registered User
    Join Date
    Nov 2008
    Posts
    40

    Re: XML in J2ME

    getResourceAsStream() method from Class ClassLoader rite? Checking FileConnection API and kXML nw thanx

Similar Threads

  1. j2me polish problem
    By jonneymendoza in forum Mobile Java General
    Replies: 2
    Last Post: 2007-03-09, 23:43
  2. Can J2ME be used for sending MMS Message ?
    By seno_ap in forum Mobile Java General
    Replies: 1
    Last Post: 2006-11-24, 14:36
  3. help on linking XML databases to J2ME.
    By yenpaul2001 in forum Mobile Java General
    Replies: 0
    Last Post: 2006-01-22, 18:43
  4. need urgent guidance on j2me
    By cogni_niru in forum Mobile Java General
    Replies: 1
    Last Post: 2005-11-13, 15:02
  5. XML Schema parser for J2ME???
    By Pepper_91 in forum Mobile Java General
    Replies: 1
    Last Post: 2005-10-11, 00:37

Posting Permissions

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