views:

29

answers:

1

`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 :( ?

+2  A: 

use

print maks.nodeValue,

The comma at the end doesn't insert the extra newline.

Krishna K