Added new methods to add and remove attributes and child tags.