I have a .txt File with lots of XML-Files in it.
So lets say: content.txt
is my file, and there are 40++ XML-"Files" in it.
(No "real" files, of course, but tags with <xml>....</xml><xml>...</xml>
and so on).
Now i want to create a parser in Python which reads the text-file, and writes every <xml>...</xml>
in a file. The name should be a Tag-Data
inside each <xml>....</xml>
.
What's the best solution for my problem?
I've read a lot about XML parsers, but nobody explains how to read AND write at the same time.