/// <summary> /// Generates xml for fields /// </summary> /// <param name="container">Fields container</param> /// <returns>Xml for fields section</returns> private static XmlElement BuildXmlFieldsContainer(FieldsContainer container) { XmlDocument doc = new XmlDocument(); XmlElement xmlFields = CreateXmlElement_0(doc, container.GetWebServiceFieldsContainerType().ToString()); foreach (Field field in container.GetFields()) { xmlFields.AppendChild(doc.ImportNode(BuildXmlField(field), true)); } return(xmlFields); }