Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3215208
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:09:03+00:00 2026-05-17T15:09:03+00:00

I am developing an application for iPhone and one part of it deals with

  • 0

I am developing an application for iPhone and one part of it deals with a list of currencies and daily exchange rates. I am using SQLite to store all these rates.

Now I came to the part where I want to make the update part of my database with the new exchange rates.

The first thought was make a request to a server with a specific date and to read back an XML containing something like:

<date value="2010-10-04">
  <currency name="EUR" rate="xxx" />
  <currency name="USD" rate="yyy" />
  <currency name="GBP" rate="zzz" />
........
</date>
<date value="2010-10-05">
  <currency name="EUR" rate="xxx" />
  <currency name="USD" rate="yyy" />
  <currency name="GBP" rate="zzz" />
........
</date>

But now I was thinking isn’t it better to make my own format, something like:

#|2010-10-04#EURxxx#USDyyy#GBPzzz#|2010-10-05#EURxxx#USDyyy#GBPzzz##

The separator will be #. Known that always the date takes 11 characters and starts with | and currency code takes 3 characters, I can search the rate until I will find a # sign.

Because I want to send as little data as I can I think this second approach will be better than the usual XML, even if I reduce the XML to:

<d v="2010-10-04">
  <c name="EUR" r="xxx" />
  <c name="USD" r="yyy" />
  <c name="GBP" r="zzz" />
........
</d>
<d v="2010-10-05">
  <c name="EUR" r="xxx" />
  <c name="USD" r="yyy" />
  <c name="GBP" r="zzz" />
........
</d>

What are your pro & cons for this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:09:04+00:00Added an answer on May 17, 2026 at 3:09 pm

    The pros:

    • As you already stated, it is shorter, faster to retrieve.
    • Faster to parse as well

    The cons:

    • If you develop the server side and the other developer on the mobile side, then he may get confused when there are no meanings

    • It is hard to scale when you have more and more attributes and if you delete or change some attributes, you have to go over all codes to change it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing one application for iphone using phone gap.I that I need to display
I am developing iPhone game application using one UIView and GraphicsContext. The belows are
I am developing iPhone application which is using the 3 projects. One project is
I am developing one Iphone application using jquery mobile + HTML5. I can check
HI to all, I am new in game developing part .Can any one help
Hello all iPhone developers, I am developing an iPhone application. In this application i
I have been developing one application in iPhone and I'm making custom cells for
I have one problem when developing iphone application. I would like to know if
I am developing one simple application related to iPhone calendar. I am able to
I'm developing one application. When I install my app in iphone and if I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.