I'm using BS4 in some Python to make a raw string look like good looking XML.
I'm using this:
fileText = (BeautifulSoup(fileText, "xml").prettify())
It gives me output like this:
<foobar>
<foo>
bar
</foo>
<foo>
bar2
</foo>
</foobar>
but i'd like:
<foobar>
<foo>bar</foo>
<foo>bar2</foo>
</foobar>
Any help is greatly appreciated!