Re: Using XML::LibXML::SAX::Parser as replacement for XML::LibXML::SAX::Generator

Robin Berjon <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
On Apr 1, 2010, at 00:50 , Michael Ludwig wrote:
> Kjetil Kjernsmo schrieb am 31.03.2010 um 23:25:12 (+0200):
>> I'm writing a module that does some SAX filtering, and I start with a
>> DOM tree and end with a DOM tree.
> 
> Maybe you're aware of that, or maybe you just want to exercise some SAX
> techniques, but when going from DOM to DOM (which means I don't have to
> worry about memory) it is much more convenient to use XSLT, a high-level
> language, than to use SAX, a rather low-level API.

Not just XSLT in fact, you can also use XPath and modify the DOM in place with Perl, for some uses it can be a lot simpler.

Kjetil: do you have some code to show us so we could advise options?

-- 
Robin Berjon - http://berjon.com/



_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.