×

Discussion Board

Results 1 to 3 of 3

Thread: Xml Parsing

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    32

    Wink Xml Parsing

    Any one please help me.. how to parsing particuler attributes of xml through J2ME..



    <catalog>
    <title>
    <name>EJB 2</name>
    <description type="permanent">
    <author>Jason</author>
    <rating>4</rating>
    <available title="Error" connectionError="There was an error retrieving data from the internet!">
    </title>
    <title>
    <name>Applied XML</name>
    <description direction="ltr" id="2">
    <author>Jason</author>
    <rating>5</rating>
    <available>Yes</available>
    </title>
    </catalog>

    If my xml is above and i want to retrieve the value of "title" and "connectionError".


    thanks in advance........

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: Xml Parsing

    Why dony you use the KXML or any other parser in order to parse the XML files.Just go through the link, and read that how sweet this works,
    http://developers.sun.com/mobility/m...es/parsingxml/
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,073

    Re: Xml Parsing

    You can take help from the code example on FN wiki, it is based on JSR-172 and you dont need any external jar like KXML...

    just change the tags you name it will work for you.

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

    thanks,
    ~Amitabh

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. Parsing xml data from the server using kxml2 in J2ME
    By dninsiima in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2010-03-26, 08:08
  3. Some problems related to xml parsing
    By anup007star in forum Symbian
    Replies: 1
    Last Post: 2009-07-20, 05:37
  4. XML Parsing using HTTP request.
    By somnathbanik in forum Symbian
    Replies: 29
    Last Post: 2009-06-27, 07:24
  5. Need knowledge about XML and XML Parsing
    By 02060515 in forum Mobile Java General
    Replies: 1
    Last Post: 2008-07-07, 08:41

Posting Permissions

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