using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main()
string xml = @"<?xml version=""1.0"" encoding=""UTF-8""?>
<n1:Form109495CTransmittalUpstream xmlns=""urn:us:gov:treasury:irs:ext:aca:air:6.2"" xmlns:irs=""urn:us:gov:treasury:irs:common""
xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:n1=""urn:us:gov:treasury:irs:msg:form1094-1095Ctransmitterupstreammessage""
xsi:schemaLocation=""urn:us:gov:treasury:irs:msg:form1094-1095Ctransmitterupstreammessage IRS-Form1094-1095CTransmitterUpstreamMessage.xsd"">
<Form1094CUpstreamDetail>
<SubmissionID>1</SubmissionID>
<irs:EmployerEIN>1</irs:EmployerEIN>
</EmployerInformationGrp>
<Form1095CUpstreamDetail>
<irs:SSN>012345678</irs:SSN>
<irs:TaxYr>2014</irs:TaxYr>
<ALEMemberInformationGrp>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
<ALEMemberFTECnt>1000</ALEMemberFTECnt>
<TotalEmployeeCnt>1000</TotalEmployeeCnt>
</ALEMemberInformationGrp>
</Form1095CUpstreamDetail>
<Form1095CUpstreamDetail>
<irs:SSN>022345678</irs:SSN>
<irs:TaxYr>2014</irs:TaxYr>
<ALEMemberInformationGrp>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
<ALEMemberFTECnt>2000</ALEMemberFTECnt>
<TotalEmployeeCnt>2000</TotalEmployeeCnt>
</ALEMemberInformationGrp>
</Form1095CUpstreamDetail>
</Form1094CUpstreamDetail>
<Form1094CUpstreamDetail>
<SubmissionID>1</SubmissionID>
<irs:EmployerEIN>2</irs:EmployerEIN>
</EmployerInformationGrp>
<Form1095CUpstreamDetail>
<irs:SSN>012345678</irs:SSN>
<irs:TaxYr>2014</irs:TaxYr>
<ALEMemberInformationGrp>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
<ALEMemberFTECnt>3000</ALEMemberFTECnt>
<TotalEmployeeCnt>3000</TotalEmployeeCnt>
</ALEMemberInformationGrp>
</Form1095CUpstreamDetail>
<Form1095CUpstreamDetail>
<irs:SSN>022345678</irs:SSN>
<irs:TaxYr>2014</irs:TaxYr>
<ALEMemberInformationGrp>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
<ALEMemberFTECnt>4000</ALEMemberFTECnt>
<TotalEmployeeCnt>4000</TotalEmployeeCnt>
</ALEMemberInformationGrp>
</Form1095CUpstreamDetail>
</Form1094CUpstreamDetail>
</n1:Form109495CTransmittalUpstream>";
XNamespace xlns = "urn:us:gov:treasury:irs:ext:aca:air:6.2";
XNamespace n1 = "urn:us:gov:treasury:irs:msg:form1094-1095Ctransmitterupstreammessage";
XNamespace irs = "urn:us:gov:treasury:irs:common";
XDocument xdoc = XDocument.Parse(xml);
var months = xdoc.Descendants(xlns + "ALEMemberFTECnt");
foreach(var month in months)
month.Value = "Something new";
foreach(var month in months)