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 822525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:48:42+00:00 2026-05-15T02:48:42+00:00

I have an application which will store a series of (float) values in an

  • 0

I have an application which will store a series of (float) values in an XML file. There could be upwards of 100,000 values so I am interested in keeping the size down, but I also want files to be readily accessible by third parties.

There seem to be various methods open to me as far as encoding the data within the XML:

1.

<data>
  <value>12.34</value>
  <value>56.78</value>
  ...
  <value>90.12</value>
</data>

2.

<data>
  <value v="12.34"/>
  <value v="56.78"/>
  ...
  <value v="90.12"/>
</data> 

3.

<data>12.34
56.78
  ...
90.12
</data> 

4.

<data>12.34, 56.78, ... 90.12</data> 

and there are probably more variations as well.

I’m just curious to know the drawbacks (if any) to each of these approaches. Some may not be compliant for example.

  • 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-15T02:48:43+00:00Added an answer on May 15, 2026 at 2:48 am

    I don’t think there’s a “better” way of doing it. Read my comment above for alternatives. But if you’re hooked on XML, then go with whatever works for you. I personally prefer something like this

    <data>
       <item key="somekey1" value="somevalue1" />
       <item key="somekey2" value="somevalue2" />
       <item key="somekey3" value="somevalue3" />
    </data>
    

    Simply because it’s nice and easy to read, and keeps the tags smaller.

    EDIT:

    Remember, the fewer characters are in your XML, the smaller it will be. (again, why I suggest JSON), so if you can get it nice and tight, by all means do it.

    <d>
       <i k="somekey1" v="somevalue1" />
       <i k="somekey2" v="somevalue2" />
       <i k="somekey3" v="somevalue3" />
    </d>
    

    EDIT:

    Also, I know you didn’t ask, but I thought I’d show you what JSON would look like

       [{ "key": "somevalue1", "value": "somevalue1"},
        { "key": "somevalue2", "value": "somevalue2"}]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an application which extracts data from an XML file using XPath. If
I have an idea for a simple application which will monitor a group of
I want to create an application which will have a client and server components.
I'm looking at building a Rails application which will have some pretty large tables
I'm thinking how to arrange a deployed python application which will have a Executable
I have a basic ajax application, which will not work, instead the php code
I have a series of models for my application. Across all these models there
I have an application which will be distributed to a large number of people
I'm trying to build a basic application which will have 2 separate components which
We have a web application which needs to store uploaded images with EdgeCast or

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.