folks! I'm trying to parse some weird formed XML:
<?xml version="1.0" encoding="UTF-8"?>
<analytics>
<standard1>
...
<attributes>
<attribute name="agentname" value="userx userx" />
<attribute name="agentpk" value="5" />
<attribute name="analytics:callid" value="757004000003597" />
...
<attribute name="wrapuptime" value="0" />
</attributes>
</standard1>
<standard2>
...
<attributes>
<attribute name="agentname" value="userx userx" />
<attribute name="agentpk" value="5" />
<attribute name="analytics:callid" value="757004000003597" />
...
<attribute name="wrapuptime" value="0" />
</attributes>
</standard2>
<engines>
...
</engines>
</analytics>
Since both name and value are attributes, I have no idea how to access value by name without looping through the whole attributes subsection with a foreach cycle.
Any ideas how to get a direct access using ElementTree?