I have an XML file that I am parsing through BeautifulSoup. A small portion of my file is:
<document>
<ad>
<date>21-Apr-2013</date>
</ad>
<ad>
<date></date>
</ad>
</document>
What is the fastest way to count the number of date
elements that are not empty? Will this be faster if I convert date
to an attribute of ad
?