Again, before I can answer that, I need to know how you want to conceptually handle the nesting. The "correct" way to put nested elements into a relational database would be to fold out additional lookup tables but that would get to be pretty complicated. The simplest (and "incorrect" i.e. non-relational) way is to serialize the data e.g. to join all of the nested fields into a single field with e.g. a semicolon separator. My guess is that your best option will be instead to "promote" the nested fields i.e. to go from this
<PotentialSpecificHeat>
<Bias>-4.43921585E-05</Bias>
<Error1>0.53285588E-02</Error1>
<Error2>0.57902443E-02</Error2>
<Tau1>5.00000000E-01</Tau1>
<Tau2>5.69579788E-01</Tau2>
<Value>0.32688055</Value>
</PotentialSpecificHeat>
to this (eliminate PotentialSpecificHeat as an enclosing tag and promote its nested elements to unested tags with a PSH prefix to show their origin)
<PSH_Bias>-4.43921585E-05</Bias>
<PSH_Error1>0.53285588E-02</Error1>
<PSH_Error2>0.57902443E-02</Error2>
<PSH_Tau1>5.00000000E-01</Tau1>
<PSH_Tau2>5.69579788E-01</Tau2>
<PSH_Value>0.32688055</Value>
If that kind of thing would work for you then you can use Perl to combine your files into one file and pre-process the nested tags into tags. You could then use
DBD::AnyData on the results.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.