nodeReplaceChildInvalidNodeType NIST The "replaceChild(newChild,oldChild)" method raises a HIERARCHY_REQUEST_ERR DOMException if this node is of a type that does not allow children of the type "newChild" to be inserted. Retrieve the root node and attempt to replace one of its children with a newly created Attr node. An Element node cannot have children of the "Attr" type, therefore the desired exception should be raised. Mary Brady 2001-08-17