Added namespace aware Document:appendElement, Element:appendElement and Element::setAttribute