xpath with big files

Vladimir Kropylev zzvladimir at gmail.com
Wed May 21 03:14:22 EDT 2008


Hi,
I've encountered a problem when trying to use lxml.etree.xpath with
big (63Mb) file. It returns empty list on any request.
Is there any restriction on file size for lxml.etree.xpath?

This is what I do:

f=open(filename)
tree = etree.parse(f)
f.close()
r = tree.xpath('//image')
print(r)

it prints:
[]

What is wrong here?



More information about the Python-list mailing list