If you want to access data as a relational database, then the data needs to be arranged into records which contain a set number of fields each of which contains a single value. That is the basis of the "rigidity" of DBD::AnyData's XML format. The sample that you show does not appear to be divided into records (unless you are omitting some enclosing tag or unless you have one record per file) and some of the fields you show (e.g. PotentialSpecificHeat) contain multiple values. You need to conceptually reduce your data to fields, records, and values before you can treat it like a database regardless of whether you use AnyData or something else. If you can tell us how you'd do that reduction perhaps we can make some suggestions.

In reply to Re: XML file as database by jZed
in thread XML file as database by Woodchuck

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.