recently, for my own devious porpoises, i wrote a perlSAX handler to turn my XML into perl objects. the concept seems to me sanely generalizable, and i intend to write it up and offer it on the steps of the Temple at CPAN. but it seems to me to be a whale of a project, so first i wanted to consult the oracles and monks here for their wisdom.
the basic premise is that you might, in an object-oriented environment, already have a lot of object classes that are strikingly similar to being perl-based analogs of your XML elements. for example, if you have an XML Document featuring BOOK, CHAPTER, PARAGRAPH and LINE elements, you may well have perl object packages Publish::Book, Publish::Chapter, etc. that you want to create based on these elements. so why not have the handler turn all your precious elements into objects?
so, three of the many spokes in the wheel of my development:
- this idea seems round, and likely to roll. it may even be able to bear weight and take projects from one place to another. as such, it seems possible that someone has created it already. did i miss it in my glance through the used car lot? i wouldn't want to re-invent it.
-
feeping creatures wanted at local meat packing plant... well, you can call it a zoo if you prefer. what would you want out of such a module? more importantly, what would you want in such a module? i will take care of your ideas as if they were my own (: (sorry, Intellectual Property is nothing to joke about in a place like this, i suppose. forgive my flippancy, please.)
- perhaps i have meditated too long by my $self in the rock garden at Mt. Crack. does this idea seem useless or, worse, bad to you? i am devout in my dedications to XML and object oriented perl, but it may be that no slave can serve two masters, and i am fooling myself by trying to bring them into the same house in this fashion. your wisdom is appreciated.
thanks,
.
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.