XML - python prints extra lines
Posted
by horse
on Stack Overflow
See other posts from Stack Overflow
or by horse
Published on 2010-05-27T03:42:00Z
Indexed on
2010/05/27
3:51 UTC
Read the original article
Hit count: 260
`from xml import xpath from xml.dom import minidom
xmldata = minidom.parse('model.xml').documentElement
for maks in xpath.Evaluate('/cacti/results/maks/text()', xmldata): print maks.nodeValue
` and I get result:
85603399.14
398673062.66
95785523.81
But I needed to be:
85603399.14
NO SPACE
398673062.66
NO SPACE
95785523.81
Can somebody help me, i new at programing :( ?
© Stack Overflow or respective owner