[libxml-devel] Better performance from find or parsing?

2009-02-10 Thread Trans
Say I have about 20 tags to find in a document and manipulate. What is going to be the faster approach, reading through the entire tree and handling the matching tags as it comes across them, or doing a #find on the document for each tag. Thanks. ___ lib

Re: [libxml-devel] Better performance from find or parsing?

2009-02-10 Thread Aaron Patterson
On Tue, Feb 10, 2009 at 06:45:26AM -0800, Trans wrote: > Say I have about 20 tags to find in a document and manipulate. What is > going to be the faster approach, reading through the entire tree and > handling the matching tags as it comes across them, or doing a #find > on the document for each ta

Re: [libxml-devel] Better performance from find or parsing?

2009-02-10 Thread Sean Chittenden
Say I have about 20 tags to find in a document and manipulate. What is going to be the faster approach, reading through the entire tree and handling the matching tags as it comes across them, or doing a #find on the document for each tag. Neither. Using a SAX interface is the fastest, actually