in reply to Filtering large XML files
As an alternative, SAX is good for stream-processing XML. It doesn't load an entire document in memory thus is good for incremental work (and not so good for document processing where you want random access), and it's filter-centered design is meant for precisely what you're doing.
Look for XML::SAX. I only briefly looked at it for a project recently; might be helpful for you. It's a different way of thinking than LibXML for sure!
EDIT I hadn't seen XML::Twig before, the perl-ish way of handling XML, and in theory "as good as SAX"- good to learn something new! Seems good to use that if possible, and if it still segfaults try contacting the author who is always wanting more tests, see "Test Coverage" on its page.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Filtering large XML files
by choroba (Cardinal) on Feb 24, 2015 at 13:40 UTC | |
|
Re^2: Filtering large XML files
by PT (Novice) on Feb 24, 2015 at 09:26 UTC |