×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2011
    Posts
    118

    How i can store in different arrays at the time of parsing

    Hi All

    I have a data coming from server is like this...
    - <BeatOutletUpdateResponse>
    - <Beat>
    <BeatName>Kurungela Town1</BeatName>
    <BeatID>9</BeatID>
    - <Outlet>
    <OutletName>Ajkat Gro</OutletName>
    <OutletID>13</OutletID>
    <OutletCategoryName>RGB</OutletCategoryName>
    <OutletCategoryID>1</OutletCategoryID>
    <Discount>Yes</Discount>
    </Outlet>
    - <Outlet>
    <OutletName>Wajira BH</OutletName>
    <OutletID>14</OutletID>
    <OutletCategoryName>PET</OutletCategoryName>
    <OutletCategoryID>2</OutletCategoryID>
    <Discount>Yes</Discount>
    </Outlet>
    - <Outlet>
    <OutletName>Outlet_test</OutletName>
    <OutletID>37</OutletID>
    <OutletCategoryName>PET</OutletCategoryName>
    <OutletCategoryID>2</OutletCategoryID>
    <Discount>No</Discount>
    </Outlet>
    - <Outlet>
    <OutletName>Outletnew</OutletName>
    <OutletID>38</OutletID>
    <OutletCategoryName>RGB</OutletCategoryName>
    <OutletCategoryID>1</OutletCategoryID>
    <Discount>Yes</Discount>
    </Outlet>
    - <Outlet>
    <OutletName>naveen_12</OutletName>
    <OutletID>207</OutletID>
    <OutletCategoryName>RGB</OutletCategoryName>
    <OutletCategoryID>1</OutletCategoryID>
    <Discount>No</Discount>
    </Outlet>
    - <Outlet>
    <OutletName>naveen_2</OutletName>
    <OutletID>208</OutletID>
    <OutletCategoryName>RGB</OutletCategoryName>
    <OutletCategoryID>1</OutletCategoryID>
    <Discount>No</Discount>
    </Outlet>
    </Beat>
    - <Beat>
    <BeatName>Colombo Road2</BeatName>
    <BeatID>10</BeatID>
    </Beat>
    - <Classification>
    <ClassificationName>General Store</ClassificationName>
    <ClassificationID>1</ClassificationID>
    <ClassificationName>Medical Store</ClassificationName>
    <ClassificationID>2</ClassificationID>
    <ClassificationName>Grocery Store</ClassificationName>
    <ClassificationID>3</ClassificationID>
    <ClassificationName>Sports Store</ClassificationName>
    <ClassificationID>4</ClassificationID>
    </Classification>
    - <OutletCategory>
    <OutletCategoryName>RGB</OutletCategoryName>
    <OutletCategoryID>1</OutletCategoryID>
    <OutletCategoryName>PET</OutletCategoryName>
    <OutletCategoryID>2</OutletCategoryID>
    <OutletCategoryName>REG + PET</OutletCategoryName>
    <OutletCategoryID>3</OutletCategoryID>
    <OutletCategoryName>EXCLUSIVE</OutletCategoryName>
    <OutletCategoryID>4</OutletCategoryID>
    </OutletCategory>
    </BeatOutletUpdateResponse>

    Now i want to store the outlets data based on beat...When i working in application if i select one beat that particular beat outlets should load into data....How can i store..Can anyone give idea??

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: How i can store in different arrays at the time of parsing

    Create class (say beat) that holds name, ids, array of oultlets (that again have name, id, category + more things) + members that you want. Create object of beat class and store in array (see RArray and RPointerArray).

Similar Threads

  1. How to store/compress image data so that I can access small bits at a time?
    By alexkerr in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2011-03-01, 21:40
  2. ovi store bugs report -> fix time
    By xlazom00 in forum [Closed] Publishing to Nokia Store
    Replies: 1
    Last Post: 2010-09-08, 11:51
  3. Time/Cost to Publish Application to Ovi store
    By murugan24 in forum [Closed] Publishing to Nokia Store
    Replies: 6
    Last Post: 2010-05-05, 21:30
  4. 2 issues- recording time passed and using record store
    By ziggy161 in forum Mobile Java Tools & SDKs
    Replies: 7
    Last Post: 2010-01-09, 21:12
  5. Replies: 0
    Last Post: 2004-10-03, 07:04

Posting Permissions

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