public XmlElement GenerationXMLnodeDrobi(int numTask, string Header, string Question, string AnswerCeloe, string AnswerChislitel, string AnswerZnamenatel) { XmlElement Element1; XmlElement Element2; Element1 = xmlDoc.CreateElement("Task_" + numTask); Element2 = xmlDoc.CreateElement("Header"); Element2.InnerText = Header; Element1.AppendChild(Element2); Element2 = xmlDoc.CreateElement("Question"); Element2.InnerText = Question; Element1.AppendChild(Element2); Element2 = xmlDoc.CreateElement("AnswerCeloe"); Element2.InnerText = AnswerCeloe; Element1.AppendChild(Element2); Element2 = xmlDoc.CreateElement("AnswerChislitel"); Element2.InnerText = AnswerChislitel; Element1.AppendChild(Element2); Element2 = xmlDoc.CreateElement("AnswerZnamenatel"); Element2.InnerText = AnswerZnamenatel; Element1.AppendChild(Element2); Element2 = xmlDoc.CreateElement("IsAnswer"); Element2.InnerText = "false"; Element1.AppendChild(Element2); return(Element1); }