I need some suggestions from monks. I will soon work on a project, which is XML related, and have to deal with lots of different XML Schemas. I know we have SAX, DOM and all those kind of things, and I know we have lots of modules from active Perl, and also CPAN that deals with XML. However all of those have a
common problem, that the development cycle is
too long, and I am looking at something a layer above.
I will do the whole project in an
OO style. What I am looking at now, is a (or a set of) module that support such a
methodology: it takes the XML Schemas, and generate the Perl OO classes, which can contain the layered-image of the XML data, and also generates all the accessors, at least the restriction checking and all the setters/getters (In Perl, most people like to combine the setter and getter, if you use it without parms, it is a getter, otherwise it is a setter). Then SAX or DOM will be used upon the XML files as parser, and I can take the parsed data and store the parsed data in those generated classes, and access them thru those generated methods (well, I expect that I have to manually add some other methods on top, but that is fine).
This will, I believe,
largely reduce the development effort.
I don’t think there is any existing Perl module does this, but I am looking at fellow monks to share your suggestions and ideas.
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.