Re: [xml] getElementsByName is available?

kalyanasundaram wrote:
On Thu, 2007-06-28 at 11:00 +0200, Stefan Behnel wrote:
kalyanasundaram wrote:
So which would be better? XPath or linear traversing?
I dont know much about XPath implementation. (Do they not traverse
atleast once?) The file size is about 500 KB. :)
That sounds rather small. Just parse it in and walk through it, that's what
I'd do.

Really! I thought 500 Kb is bigger. How much it would be able to handle?

I ran an lxml.etree benchmark in Python once that sucked in 3MB of XML (the
old Jewish testament) and then traversed it to find verses that contain a
specific text. Took about 110 milliseconds on my machine.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]