Current Error: Attribute and namespace nodes cannot be added to the parent element after a text, comment, pi, or sub-element node has already been added.