Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: XML Examples (and a call for participation)

by ajt (Prior)
on Nov 19, 2002 at 13:26 UTC ( #214106=note: print w/replies, xml ) Need Help??

in reply to XML Examples (and a call for participation)

mirod Way to go!

I don't know if I'm much help, I'm willing, but I'd love to see a Perl/XML cookbook, similar but expanded on "Ways to Rome".

Perhaps a project on SourceFourge (or similar) like the Perl XML FAQ?

Recently brian d foy has started to work on updating XML::RSS, and this has made me think that perhaps Perl needs a XML site where all the fine Perl/XML projects can be linked and listed. There are plenty of modules in CPAN, Yahoo groups, SourceForge projects, newsgroups, and related technologies, yet there doesn't seem to be a simple front page to the lot - if there is I'd like a link to it please!

  • Comment on Re: XML Examples (and a call for participation)

Replies are listed 'Best First'.
Re: Re: XML Examples (and a call for participation)
by grantm (Parson) on Nov 20, 2002 at 22:28 UTC
    My original vision for the Perl-XML FAQ was that it should be packaged as a distribution available via CPAN. The Q&A part would be available in the source XML format as well as a POD version, but I also envisaged that the distribution would include an 'examples' directory. Unfortunately, I've been busy on other stuff and not progressed that side of things at all.

    The way I saw the examples working is to define a small number of 'problems' (3-5) and then provide one 'solution' for each problem using each available module. One or more of the problems would use mixed content (the XML as a document model) and some would not (the XML as data model). Some possible problems might include:

    • Read a Purchase Order XML document and extract some specific fields.
    • Read an XML document add, remove and modify specified elements then write it back out as XML.
    • Take a Perl data structure and output it as an XML document in a specified schema (small 's')
    • Transform an XML document into an HTML version

    The Perl-XML FAQ is under CVS on SourceForge and I'd be more than happy to accept contributions, but I think the first step before starting to cut code is to define the problems. was envisaged as a home for Perl XML stuff such as a directory of projects. I'm sure Ilya would welcome contributions - the Perl-XML mailing list might be a good place to discuss it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://214106]
[hippo]: Yary: There are a few useful pointers in I need perl coding standards
[hippo]: ... and a boatload of good stuff in On Coding Standards and Code Reviews
[Yary]: Looking at system pm's, looks like it's "package" on the first line, then POD, then "use;use strict; use warnings; use modules..."
[Yary]: ah thanks for those links
[hippo]: Just bear in mind that all such ideas are subjective.
[choroba]: There might be a different standard at the shop you write the code for.
[choroba]: The order of package - (strict+warnings | warnings+strict) - modules makes sense, POD and strict-warnings order are not so important

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (12)
As of 2018-01-23 17:02 GMT
Find Nodes?
    Voting Booth?
    How did you see in the new year?

    Results (250 votes). Check out past polls.