Append created child nodes to parent when generating XML.