I have an xml file that looks a bit like this:
<article id = '1'>
<p> This is </p>
<p> example A </p>
</article>
<article id = '2'>
<p> This is </p>
<p> example B </p>
</article>
I would like to create a dictionary that looks like this:
{1: 'This is example A', 2: 'This is example B'}
with the keys being the 'id' in the tag. What is the best way to go about doing this using beautiful soup?