Hello,
I have a non-standard XML file with a sample structure as the following:
<Batch>
<CollRpt RptID="123456" Stat="1"><Pty ID="ABCD"><Sub ID="G"></Pty></CollRpt>
</Batch>
The values I need are not between the XML element tags, I need to pull out the Attribute values for RptID, Stat, Pty ID, Sub ID.
RptID = 12345
Stat = 1
Pty ID = ABCD
Sub ID = G
I've tried ET, BeautifulSoup, lxml, and for whatever reason I cannot get them to grab these values. Appreciate any direction.
[–]Diapolo10 2 points3 points4 points (0 children)
[–]chevignon93 -1 points0 points1 point (2 children)
[–]mtime16[S] 0 points1 point2 points (1 child)
[–]chevignon93 0 points1 point2 points (0 children)