This site is terrific and I'm enjoying responding to the puzzles that others post. My turn to ask a question. I am a 2-year Perl user, but new to XML and trying to make my way through XML::Parser and XML::Simple. I've searched through the vague XML module names on CPAN, even read a few readme files, and can't find what I'm looking for. My goal is to map XML data to SQL data, both for reading and writing. In other words, I'd like to execute a SELECT query on my data and get the data into some nice XML that I can send to some external application. Also, I'd like to read in some XML and insert that into one or more tables. I've no problem reading and writing to my databases, and no problem reading and writing XML using XML::Simple. What I need is a mapping tool. Before I go writing one, I'm wondering if anyone knows of such a method or module to get the job done. Anyone? Hello? Bueller? Bueller? Thanks. --Mark

In reply to XML to DBI by markwild

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.