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 ]

2shortplanks (968)

2shortplanks
  (email not shown publicly)
http://2shortplanks.com/
AOL IM: trelane2sp (Add Buddy, Send Message)
Yahoo! ID: trelane2sp (Add User, Send Message)

Mark Fowler has never been the same since he was elected leader of the London Perl Mongers. The strain manifests itself mainly in releasing various [cpan.org] modules [cpan.org] to CPAN, giving talks [2shortplanks.com], and use of the Trelane nick on #london.pm for endless procrastination. Doctors are still seeking a cure.
Tuesday June 18, 2002
11:45 AM

XML coding frenzy

[ #5741 ]
Ever since I got my copy of Perl & XML I've been fiddling around with XML no end.

The fruits of all of this are two more new modules. The first of these is the pretty much completed one XML::SAX::Convenience which is a simple Exporter module that provides quick and dirty routines for quickly spitting out SAX2 events for starting, filling in, and ending XML.

What do people think of this? Is it too simple? Is there something better that does this kind of thing already? Should I upload it to CPAN (er, after I've spell checked the documentation anyway?)

The second one is - of course - a testing module. This is tentatively called Test::XML::SAX and is designed to test that a handler pipeline is spitting out the expected events. This hasn't got past the documentation stage - I need to actually write the tests and the code - but please, first, some feedback.

You know, I should probably join a Perl related XML mailing list somewhere, but yeesh - more mailing lists, scary...

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.
  • The best place is probably the activestate one:

    http://listserv.activestate.com/mailman/listinfo/perl-xml [activestate.com]

    It's got most of the XML module authors on it and it's not too high volume (10-15 messages per day when busy).

    -Dom

  • Your SAX helper is definitely useful, no doubt. In fact, that has been in plan for ages (I think you could find the details in the archives. Look for NodeFactory if you want, but it's mostly historical). The main reason it never saw the light of day is that we wanted it to be coordinated with the PerlDOM efforts, but that lost steam in the process. So yes, please do release it (and announce it).

    The only flaw I can see with it is that it doesn't look very namespace friendly. You can set a namespace

    --

    -- Robin Berjon [berjon.com]

    • Perl and XML list subscribed to
    • Move ahead with XML::SAX::Convenience
      • Rename element_wrap to element - it's just too long
      • lose chars, it takes more space to type than doing the original by hand.
      • Think about implmenting jclark notation for attributes rather than setting default namespaceuris, with the possibility of extended jclark notation "{NamespaceURI}prefix:localname" should we really want it
      • Poke around in XML::Generator::PerlData because that has lots of goo