I\'m trying to get all the XML attributes for the tag Name.
Name
Getting this error:
AttributeError: \'NoneType\' object has no attribute \'attr
In BeautifulSoup 4, you can use
doc = bs.BeautifulSoup(xml, "xml") div = doc.find("Name")
This should work.