1
var doc = new XDocument(
        new XElement(p + "Form109495CTransmittalUpstream",
            new XAttribute(XNamespace.Xmlns + "p", p),
            new XAttribute(XNamespace.Xmlns + "p1", p1),
            new XAttribute(XNamespace.Xmlns + "p2", p2),
            new XAttribute(XNamespace.Xmlns + "p3", p3),
            new XAttribute(XNamespace.Xmlns + "xsi", xsi),
            new XAttribute(xsi + "schemaLocation", schemaLocation),

            new XElement(p1 + "Form1094CUpstreamDetail",
                new XAttribute("recordType", ""),
                new XAttribute("lineNum", "0"),
                new XElement(p1 + "SubmissionId", submissionId),
                new XElement(p1 + "TestScenarioId", (testScenarioId != "") ? (testScenarioId + "-0") : ""),
                new XElement(p1 + "TaxYr", taxYear),
                new XElement(p1 + "CorrectedInd", 0),

                OrganizationToXml(employer.Company, "EmployerInformationGrp"),
                OrganizationToXml(employer.GovEntity, "GovtEntityEmployerInfoGrp"),

                new XElement(p1 + "Form1095CAttachedCnt", (employer.TotalForms > 0) ? employer.TotalForms.ToString() : ""),
                new XElement(p1 + "AuthoritativeTransmittalInd", (employer.AuthoritativeTransmission == true) ? "1" : ""),
                new XElement(p1 + "TotalForm1095CALEMemberCnt", (employer.TotalForms > 0) ? employer.TotalForms.ToString() : ""),
                new XElement(p1 + "AggregatedGroupMemberCd", ((employer.AggregatedAleGroup == null) ? "0" : (employer.AggregatedAleGroup == true) ? "1" : "2")),

                new XElement(p1 + "QualifyingOfferMethodInd", ((employer.CertificationA == true) ? "1" : "")),
                new XElement(p1 + "QlfyOfferMethodTrnstReliefInd", ((employer.CertificationB == true) ? "1" : "")),
                new XElement(p1 + "Section4980HReliefInd", ((employer.CertificationC == true) ? "1" : "")),
                new XElement(p1 + "NinetyEightPctOfferMethodInd", ((employer.CertificationD == true) ? "1" : "")),

                AleMemberInfoToXml(employer),
                employer.OtherAleMembers.Select(x => SubsidiaryToXml(x)),
                employees.Select((value, index) => EmployeeToXml(value, index + 1, employer.Company.Phone, taxYear, testScenarioId.ToString()))
            )
        )
    );

我正在尝试根据今年的架构验证我的 MANIFEST xml 文件和 1094-C 文件文件。我已经把它归结为最后两个错误,我相信如果第一个错误得到修复,第二个错误将得到处理。包括我所知道的我目前可以合法展示的所有内容。图片是错误本身。我想知道是否与 Section4980h 区域似乎在模式中被注释掉的事实有关。发布的代码片段是问题区域。 我得到的错误

4

0 回答 0