Re: DOM thingies
by Edwin Pratomo other posts by this author
Dec 5 2001 12:00PM messages near this date
view in the new Beta List Site
Re: XML::Parser::PerlSAX.pm
|
Re: DOM thingies
Matt Sergeant wrote:
> >
> > 1. DOM conformance test in Perl
>
> Congrats for volunteering! This will be a great service to the community ;-)
:-) Well, I need the test now for XML::Xalan's DOM API which I've just
finished.
Since there's another high priority goal to work on at this moment, I
don't think I'd have time to write the test myself.
Maybe later, when PerlDOM has born, and if still there's nobody working
on the test! :-)
> > 2. DOM tree to SAX2 events generator module
> > something like XML::LibXML::SAX::Generator (which is unfortunately
> > marked as deprecated), but live on its own as a stand-alone module.
>
> When the DOM's conform to the same API (after you've written 1.), we can do
> such a thing. XML::DOM has to_sax, which basically does the same thing. And
> XML::LibXML::SAX::Parser now does the job of Generator.
Uh yes, it also has the same generate() method! I didn't see it before,
and I thought you had removed it when you rewrote LibXML::SAX::Generator
into this, and just use the dom internally.
Haven't tried the to_sax() function. Has XML::DOM already supported
namespace?
IMO, it would be better if the Generator is pulled out as a separate
module, so every DOM implementation doesn't have to come with its own
generator, duplicating the same work again and again.
rgds,
Edwin.
_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-xml
Thread:
Matt Sergeant
Nick Semenov
Sterin, Ilya
Randy Kobes
Edwin Pratomo
Robin Berjon
|