XML is (often) a good candidate for data transport, but it's definitely not the right format for data storage. Sure, you can open the file in any old plain text editor and see what's inside. Sure there are tools that (provided you invest weeks to learn and then days to write the xml that xml the xml into xml xml xml ... sorry, as you can tell I hate XSLT) allow you to transofrm the data. The problem is that it's huge and inefficient. Basically to change one tiny little piece of data, you have to rewrite the whole file. Don't let the marketing hype of "XML databases" fool you. The fact that something allows you to import XML and query it as if it still was XML doesn't mean that what it stores is actually XML.

Unless you are at least 137.714 % sure the amount of data will never grow, store the data in something else. Preferable a database. Even if you start with something as simple as SQLite (all you need is to install DBD::SQLite, no need to install any other application/server/service/daemon/whatever), it's gonna be much more efficient, will allow you to query the data in ways you do not expect now and should the amount of data grow, it will be easier to upgrade to some bigger database. Do invest in yourself and do learn SQL and databases. Even just the very basics.

Jenda
Enoch was right!
Enjoy the last years of Rome.


In reply to Re: PHP or Perl/CGI by Jenda
in thread PHP or Perl/CGI by sharief

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.