I'm using an richtext-editor to modify my documents. I want it to be able for xhtml. So I find ur getXHTML-Functions. But if I put a border to an Image for example the border=0 Attrib will get to border="9". If I put border=1 it says border="25" or border=2 becomes border="41" ...hey whats up there? I've tried to debug it, but the wrong number is already in the String, before the nodeAttribute is reached. I'm using IE5.5