Hey Monks,

It's been over a year since I've touched perl (blasphemy, I know) and I'm shaking the rust off my keyboard. For practice, I'm going to write a program that takes an XML document as input (from the file system for starters, as a http response later), converts it into HTML and saves it locally (later, it will build a form, display it to a user for hand-editing, and send it as an http request to an external web service).

I've poked around PM and found Node XML to HTML, but it's from 2002. I was wondering if anyone has some different ideas about how to go about this, four years on.

Specifically, recommendations, comments, curses and so forth with regard to specific CPAN modules, etc.

Thanks for your advice,

AH

p.s. Also, and this is totally unrelated, but is there a place on PM where I can put a note about how to avoid a common problem while installing XML::Parser on OS X? I wrestled with it for a couple of hours before figuring it out and think other newbs could benefit.

----------
Using perl 5.8.1-RC3 unless otherwise noted. Apache/1.3.33 (Darwin) unless otherwise noted. Mac OS X 10.3.9 unless otherwise noted.

In reply to XML in, HTML out design patterns by alienhuman

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.