Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)

TorgoX
  sburkeNO@SPAMcpan.org
http://search.cpan.org/~sburke/

"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Wednesday December 19, 2001
01:50 AM

Pod as XML

[ #1718 ]
Dear Log,

My current project that I poke at as I fall asleep each morning/afternoon/night (and I do a lot of wonderful wonderful sleeping, as my brain chemistry is adjusting to Paxil) is writing a new Pod parser module, starting from scratch, to be perlpodspec-compliant. It's stream-based: you feed in a stream of lines of Pod, and it produces either events (probably in SAX format, which seems straightforward enough) or a stream of XML output. So to process Pod, you use the events, or you can send the XML output to the XML module of your choice.

Writing perlpodspec and a Pod parser is a whole lot of work, for which I doubt I will see either fame or fortune (unless you slip me some twenny dallah bills, or get Fox to option my TV series pitch about an open source software developer's zany life.)
But I suppose that my doing both is easier than my doing one and someone else's doing another, since really much of the work of writing perlpodspec was making sure that the ideas I was formalizing would actually be implementable. That meant basically writing Pod parsers in my head. So now it's mainly just getting it all down on disk.
And my doing one from stratch is definitely easier than slogging thru all the existing Pod parsers' code and fixing them. I'm not really good with other people's code.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • That sounds like a lovely idea to me :-) Is an XML stream necessary ? Simply having SAX should suffice as one could plug a SAX handler that would stream XML out. Unless of course I misread and you meant event stream.

    A few things that I'd like to see in an XMLized POD would be 1) a namespace (so that we can mix it freely with other stuff) and 2) the inclusion of the Perl source in the output, mostly so that perldoc -m could be done with simple XSLT.

    --

    -- Robin Berjon [berjon.com]