Simpler solution to grafting SimpleXML trees.