The reason you have seen SQL to XML on CPAN is because it is quite easy to define an XML structure that will hold the result of an SQL query. Relational tables have a well defined structure, and the XML just mirrors it. So you can take any SQL query and dump it as XML using a DTD defined by the module.
Now doing the opposite is quite different. You have to take an XML document with an unknown structure, and map it to one, or more, row, or maybe table. There is no hard and fast rule here.
So you will have to write code for this.
Hopefully the code is not necessarily very complex. Look at Ways to Rome 2 - Kourallinen Dollareita for examples of how to do a very similar task, using various modules.
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.