Good day dear developers. I can't fully parse an xml file.
The structure looks like:
<foo>
<bar1 id="1">
<bar2>
<foobar id="2">name1</foobar>
<foobar id="3">name2</foobar>
</bar2>
</bar1>
</foo>
I used the xml.etree library so I use code like:
source.get('Id')
so i get the first attribute
to get a nested tag i use code like: source.find('bar/foobar').text
The question is how to get next nested attributes? ( Id =2 and id = 3) It shows an error when i'm trying to use some stuff with slash source.get('bar/id') and other tries give me just the first attribute which i already got, also the second nested attribute has the same name Id.
Thank you for the help in advance.