@ZeroKilledOct 22.2008 — #you are confusing me, you want to change the nodeValue or the nodeType? however, you can't assign a value to nodeType property because it is readonly. but you can replace the node with method replaceChild(node to replace with, which node to replace);
@KorOct 22.2008 — #Only textNodes and attributeNodes have nodeValue, not all the nodes.
nodeType is a readonly property, it can not be changed. It makes no sense, anyway, to change the type of a node. What[I] in fact[/I] is your final aim? Why do you need that?