in reply to Rewriting XML::DOM based module as XML::SAX

It's entirely possible I'm shooting in the dark here, but I did find some interesting-looking hits by searching "dom2sax" perl and XML::DOM XML::SAX convert "dom2sax"; including this promising (Python) link: parser to generate SAX events from a DOM tree... More pyxml how-to here...

I am equally unsure if the article mentioned here would be of any use... There's a bit of discussion here on SAX vs DOM, differences of which you are probably already aware... A much older writeup, but perhaps the links could still prove useful: Re: XM-Hell...

And hopefully, someone far more knowledgeable than I will come along, see this, and have better answers...

Good luck,

Update: Even better search terms: "dom to sax" perl...

Update 2: Here are two potentially helpful methods I have pieced together from my research:

And one more link: SAX2 Chapter 3: Producing SAX2 Events

planetscape
  • Comment on Re: Rewriting XML::DOM based module as XML::SAX