Vynce has asked for the wisdom of the Perl Monks concerning the following question:
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:
thanks,
.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: handling my PerlSAX handler
by jeroenes (Priest) on May 21, 2001 at 12:56 UTC | |
by Vynce (Friar) on May 21, 2001 at 14:14 UTC | |
|
Re: handling my PerlSAX handler
by aardvark (Pilgrim) on May 21, 2001 at 17:18 UTC | |
|
Re: handling my PerlSAX handler
by mirod (Canon) on May 21, 2001 at 20:52 UTC | |
|
Re: handling my PerlSAX handler
by markjugg (Curate) on May 21, 2001 at 20:38 UTC | |
|
Re: handling my PerlSAX handler
by Anonymous Monk on May 23, 2001 at 01:38 UTC |