Re: ElementTree.findtext()

2005-01-21 Thread Skip Montanaro
Richie> I realised what the problem was the second after I hit Send (why Richie> is it never the second *before*?) So you could enlighten those of us who didn't realize what the problem was, even ten seconds later than that... Richie> The tree represents the top-level element, so

Re: ElementTree.findtext()

2005-01-21 Thread Richie Hindle
[me] > >>> print tree.findtext("html/head/title") > None I realised what the problem was the second after I hit Send (why is it never the second *before*?) The tree represents the top-level element, so of course searching within it for 'html' fails. What I should say is this: >>> print tree.f