"Ajay" <abra9823 at mail.usyd.edu.au> wrote in message news:mailman.1651.1092488767.5135.python-list at python.org... > str = whiteSpaces[counter].nodeValue > string.strip(str) <snip> > however this isn't working. when i print out all the elements in the > document, i still get the whitespace text elements. shouldn't str.strip() work instead? --T