added Namespace variants of newElement and setAttirbute