M
M
M1zukage2020-05-27 15:09:19
Python
M1zukage, 2020-05-27 15:09:19

How to write a parsed XML file to txt, in Python?

Hello, please tell me how to write the parsed XML file in txt format?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Yakushenko, 2020-05-27
@M1zukage

with open('filename.txt', 'w') as fo:
    fo.write(your_xml)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question