Storing large scale of data in XML? is it feasible?

Posted on 2011-10-22
Last Modified: 2013-11-18

Hello group,

I'm receiving data from a piece of hardware through RS232 serial connection and rather than saving data into a DB I want to store them in XML files. One thing I'm worry about is that sometimes I might get large scale of data from memory such as 8 x 8K or 2 x 8K data. (all 0s and 1s)

How can I store it into leaf in XML? what would be the downside of it?

Any help i appreciated.

Question by:akohan
    LVL 3

    Accepted Solution

    The question is how you want to store it.  If you want each 0 or 1 to have a tag it would fill up and break pretty quickly.

    If you want to have one tag for each piece of data then it is probably viable, but in general a database would be more effective at retrieving the data is would be able to go directly to the data instead of working through a huge text file.

    I have seen XML files as big as 16Gb so it is not impossible, just not necessarily a good idea...

    Chris Bray

    Author Closing Comment

    Thank you.

    Featured Post

    Course: HTML5 Mobile App Development with PhoneGap

    PhoneGap can help you leverage your already existing HTML5, JavaScript, and CSS skills in order to create and deploy cross-platform mobile apps.This program comprehensively covers HTML5 mobile app development from top to bottom.

    Join & Write a Comment

    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
    The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now