Added 'parent' attribute to generated XML.