On 5/31/07, Brandon McGinty <[EMAIL PROTECTED]> wrote:
> I would think that I could do:
> etexts=tree.findall('pgterms:etext')
> (or something like that), Which would pull out each etext record in the
> file.
> I could then do:
> for book in etexts:
> print book.get('id')
> This isn't yielding any
Hi All,
I'm trying to parse the rdf catalog at:
http://www.gutenberg.org/feeds/catalog.rdf.bz2
I've put it into an _ElementTree as follows:
import time
import xml.etree.cElementTree as et
tree = et.parse('c:/tmp/catalog2.rdf')
root = tree.getroot()
I would think that I could do:
etexts=tree.findall