Just wondering, why is <resultset><row/></resultset> no good? It seems to me that if all the client is expecting is simple tabular data (say, to be displayed to the end user as a simple table) then that ought to be good enough. Or at least, that's what I thought when I did something very similar at work recently (sadly not in Perl).

I guess the thing is that if your client expects back highly structured data with specific meanings it's a different matter. I'm not too familiar with modules for this, but it seems like one good way might be to just store your XML templates somewhere (if they'll be fairly static), and use some kind of table to map the results from your query to individual locations (defined using XPath perhaps) in your XML template. I believe you could use XSLT for that too though I haven't tried.


In reply to Re: DBMS<=>XML by Errto
in thread DBMS<=>XML by rvosa

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.