I am trying to parse the Name
(everything within the quotes) of a xml file that looks something like this:
<
...
Name="Mike"
Phone="XXX-XXX-XXXX"
>
I would like to result to return Mike
.
I am able to list the directory with os.scandir()
like this:
import os
x = [f.name for f in os.scandir('/path/to/myxml')]
My question is, how can I parse the desired text within the xml file?