Discussion Board

Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18

Thread: Parsing Error

  1. #16
    Registered User
    Join Date
    May 2013

    Re: Parsing Error

    I dont know wether i am doing right or wrong but after parsing some records and adding them to rms database ...i empty the vectors by using v.removeallelements() method . And then calling url link from next point and doing the same. By this way i am not getting out of memory error problem and i am able to write all my records. But i am yet to test on device and i think parsing such huge amount can cause problems.

  2. #17
    Registered User
    Join Date
    May 2008
    Surat Thani

    Re: Parsing Error

    Quote Originally Posted by Manpreet_Singh View Post
    I am not getting this logic because some of the steps i am using in my code, what changes i have to make in my parsing code? and abt rms ...earlier i thought that i will add my data in rms once it is collected in vectors but i am getting out of memory error there
    Actually, it's a lot easier and less error-prone than what you're doing now. Let's use the same names for the Strings that you currently use for Vectors:

    String v1=null;
    String v2=null;
    String v3=null;
    String v4=null;
    In the loop you now just set the the String value instead of appending to the vector:
    v1 = story_week; // Was v1.addElement(story_week);
    Then the only thing you need to add is handling for item's end tag - when the end tag comes, you save the info for the current story (v1, v2, v3, v4), if all of them are non-null. And just to avoid issues with incorrect xml data, you can null them all after saving, or when you get next item's start tag.
    Last edited by TongMuan; 2013-07-25 at 12:03.

  3. #18
    Registered User
    Join Date
    May 2013

    Re: Parsing Error

    thanks ......

Similar Threads

  1. Parsing of GCC 4.4.1 error message in Carbide.c++ 2.6
    By mgroeber9110 in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 12
    Last Post: 2011-09-15, 10:45
  2. In XML parsing I get -996 error.
    By SymbianTH in forum Symbian
    Replies: 3
    Last Post: 2010-04-05, 14:49
  3. -998 error while parsing on 5th Edition
    By sunitha.m13 in forum Symbian
    Replies: 1
    Last Post: 2009-10-22, 14:23
  4. Error while parsing XML in j2me app
    By knights123 in forum Mobile Java General
    Replies: 2
    Last Post: 2009-07-06, 17:58
  5. e32std.h parsing error
    By Tatavarthi in forum Symbian
    Replies: 2
    Last Post: 2008-03-25, 07:08

Posting Permissions

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