Hello Monks, I have several xml files which I want to concatenate into a single file to use as a database with DBD::Anydata;
. . . <NbSitesInChainN>4</NbSitesInChainN> <NbSlicesBetweenStabilization>4</NbSlicesBetweenStabilization> <NbWarmUpCycles>1000000</NbWarmUpCycles> <PotentialEnergy> <Error1>0.26640880E-03</Error1> <Tau1>1.12518850E+00</Tau1> <Value>-0.25547426</Value> </PotentialEnergy> <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> . . .
The thing is the format needed is really rigid (read AnyData::Format::XML) and there's talk of DTDs but I know nothing about them I'm free to change my XML OR use some other tools than AnyData. It's really the database features I'm interested in. Any tips? Thanks in advance.

In reply to 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.