×

Discussion Board

Results 1 to 3 of 3

Thread: xml parsing

  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    10

    Angry xml parsing

    <voter>

    <person state="kerala">

    <firstname>faisal</firstname>
    <secondname>iqbal</secondname>
    <age>25</age>
    </person>



    <person state="tripura">

    <firstname>vivek</firstname>
    <secondname>mohan</secondname>
    <age>22</age>
    </person>


    <person state="westbengal">

    <firstname>arun</firstname>
    <secondname>ghosh</secondname>
    <age>20</age>
    </person>


    <email>

    <yahoo>
    <loginid>faisalvkd@yahoo.com</loginid>
    <password>subham</password>


    </yahoo>

    <gmail>

    <loginid>faisalvkd@gmail.com</loginid>
    <password>sundaram</password>
    </gmail>
    </email>

    </voter>



    i want read this xml file and to dispaly this like in mobile

    voter(folder)
    .person(subfolder)
    .file 1
    .file2
    .file3
    .email(subfolder)
    .yahoo(subfolder)
    .file3
    .gmail(subfolder)
    .file4

    is it posiible

    is any body know it pls help me

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

    Thumbs up Re: xml parsing

    Hello,
    There are many parsing techniques using the Java ME. You can read the same here,
    http://developers.sun.com/mobility/m...es/parsingxml/
    and then you can have a demo at the bottom of the page.
    Try to understand the same first and then move towards the implementation.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Regular Contributor
    Join Date
    Feb 2010
    Posts
    69

    Re: xml parsing

    Hii

    r u asking for XML prsing help or displaying the parsed data in File View Structure.

    voter(folder)
    .person(subfolder)
    .file 1
    .file2
    .file3
    .email(subfolder)
    .yahoo(subfolder)
    .file3
    .gmail(subfolder)
    .file4
    for parsing the link given by raj will help u. but for FileView structure there is no control in J2ME. Either u have to make ur own custom control for that or check LWUIT (java.sun.com/developer/technicalArticles/javame/lwuit_intro).

    hope this will help u

    Nikesh~
    Enthusiastic

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
  •  
×