Are you looking to remove useless whitespace text nodes from a node tree? Cos Alex Vincent wrote a nifty method for that - http://www.codingforums.com/showthre...&threadid=7028
Except don't let it run in mac/ie5, because in that browser HTML structures become unstable when stripped of whitespace.
"Why bother with accessibility? ... Because deep down you know that the web is attractive to people who aren't exactly like you." - Joe Clark