public static XmlDocument GenerateOutputXml(IEnumerable <Change> changes) { IEnumerable <SalesForceChange> processedChanges = ProcesChanges(changes); XmlOutput xo = new XmlOutput() .XmlDeclaration() .Node("package").Attribute("xmlns", "http://soap.sforce.com/2006/04/metadata").Within(); foreach (var salesForceChange in processedChanges) { xo.Node("types").Within() .Node("members").InnerText(salesForceChange.FileName) .Node("name").InnerText(salesForceChange.SalesForceType.ToString()) .EndWithin(); } xo.EndWithin() .Node("version").InnerText("34.0"); return(xo.GetXmlDocument()); }
public static XmlDocument GenerateOutputXml(IEnumerable<Change> changes) { IEnumerable<SalesForceChange> processedChanges = ProcesChanges(changes); XmlOutput xo = new XmlOutput() .XmlDeclaration() .Node("package").Attribute("xmlns", "http://soap.sforce.com/2006/04/metadata").Within(); foreach (var salesForceChange in processedChanges) { xo.Node("types").Within() .Node("members").InnerText(salesForceChange.FileName) .Node("name").InnerText(salesForceChange.SalesForceType.ToString()) .EndWithin(); } xo.EndWithin() .Node("version").InnerText("34.0"); return xo.GetXmlDocument(); }