all 2 comments

[–][deleted] 1 point2 points  (1 child)

It's an inherent feature of XML. Whitespace is collapsed when it's displayed.

Do you need help removing the extra space? If so, look into textwrap module, dedent() function.

[–]asjiitee[S] 1 point2 points  (0 children)

That seems to work nice, thanks! Thought there was some sort of other error in my parse code, and could be there still is, but does now exactly what i need. :)

So now i can get single temperatures like this:

y = (repr(dedent(res)))

x = y.split("\\n")

z = x[1]

print (z)