×

Discussion Board

Results 1 to 4 of 4

Thread: Xml parsing

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

    Red face Xml parsing

    Hiiii anyone plz help me ....... its very urgent.. iwant to parse xml. my xml is given below

    -<response>
    -<language name="English" direction="ltr" id="2">
    <errors title="Error" connectionError="There was an error retrieving data from the internet!" internetRequired="An internet connection is required for this application" scanFaild="SCAN FAILED" pickAnother="Please pick another photo" OK="OK" tryAgain="Please try again." retry="RETRY" chooseAge="You must Choose Age" fillAll="You must fill all fields"></errors>
    </language>
    -<language name="Hebrew" direction="rtl" id="15">
    <errors title="שגיאה" connectionError="שגיאה בעת חיבור לרשת!" internetRequired="לאפליקציה דרוש חיבור לאינטרנט" scanFaild="סריקה נכשלה" pickAnother="נא בחר תמונה שונה" OK="OK" tryAgain="נסה שוב בבקשה" retry="נסה שנית" chooseAge="חובה לבחור גיל" fillAll="חובה למלא את כל השדות"/>
    </language>
    <response>

    now my code parse whole the xml. but i want parse some particuler part of this xml.
    like
    if laguage=="enlish" then fetch content of "connectionError",
    else if laguage=="Hebrew" then content of "connectionError"..

    thanx in advance...

  2. #2
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Xml parsing

    You might want to have a look at Graham's comprehensive XML Parsing wiki article :
    http://wiki.forum.nokia.com/index.ph...arsing_Example

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

    Re: Xml parsing

    Thanx a lot ur article is very much helpfull for me. but my problem is i want some part
    acroding to this xml ---
    if givenname="Bob" then
    type="mobile"

    thanx again.................

  4. #4
    Super Contributor
    Join Date
    Apr 2007
    Posts
    2,708

    Re: Xml parsing

    Well I'm not sure I understand what you are asking for, but if I assume you want to do something specific when a specific tag is passing by (for example a <JOB> tag) then you should check into the handler's functionality...

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