Added detach() method to strip off a root parent element, fixed bug in namespace...