D
D
dr sbtn2017-08-12 17:10:12
Python
dr sbtn, 2017-08-12 17:10:12

How to parse an xml file in python to extract the necessary information from there into the resulting dictionary, for example?

let's say some test is being executed, which spits out xml with test results at the output.
guide me please: how can i extract the data i need from this xml file?
(let's say I need to get the technical and "human" names of the test, status, etc.)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2017-08-12
@Survtur

Personally, I like Beautiful Soup 4. It is suitable for both strict XML and not very strict HTML.
https://www.crummy.com/software/BeautifulSoup/bs4/doc/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question