On Feb 20, 11:27 am, sWrath swrath <swr...@gmail.com> wrote:
> 2 Questions
>
> 1. Why can't I use dom.getElementsByTagName('book') in #Error 1? How
> do i print the elements ?
>       Error- AttributeError: ElementTree instance has no attribute
> 'getElementsByTagName'

I only see one question here.

I think the error is asserting that your instance of the ET class does
not have such a fcn.  I also do not see it in the ET documentation.
Perhaps you are looking for the XPath support at 
http://effbot.org/zone/element-xpath.htm
?  Or perhaps you want to make your document dom representation via a
different library?

Jim
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to