Hello all,

I'm writing a program for Mac OS X in objective-c and whatnot but I thought that it would be really cool if I could use perl to format the output. Basically the program works with XML data and I would like Perl bit to be able to take the XML file and do some formatting stuff. For example, a plugin could take some XML data that has a date and appointment info and make a nice html calendar. I know this kind of stuff has been done a million time before but I'm new to this perl thing and I'm having fun.

My question is: is there a prefered way parsing XML with perl? I'd imagine that there is some cpan module out there that would do it for me, but since this program needs to run on a untouched OSX box, using a cpan module isn't possible. My plan is to write a paser function that the plugins could share... At any rate, I just wanted to get some input before I spend a bunch of time working on this.

Thanks...


In reply to Using Perl for plugins... by dockthepod

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.