Acord Life 2.20.01 XML Data Binding  - Nuget packge LiquidTechnologies.XmlObjects.AcordLife2-20-01 Acord Life 2.20.01 XML Data Binding - Nuget packge LiquidTechnologies.XmlObjects.AcordLife2-20-01

Home > XML Data Binding Nuget Packages > Acord Life 2.20.01


Acord - Life, Annuity & Health Standards Program

ACORD's Life, Annuity & Health Standards Program supports the life, annuity, and health product lines as well as life reinsurance for individual and group lines of business. Through the Life, Annuity & Health Standards Program, and with membership support and the involvement of industry-sponsored volunteers, ACORD facilitates the development and maintenance of the ACORD Standards for Life, Annuity & Health.

NuGet Package ID LiquidTechnologies.XmlObjects.AcordLife2-20-01
Description An object model for the Acord Life standard providing strongly typed classes that can be serialized/deserializsed to XML.
Documentation Liquid XML Objects API
Schema Documentation Standards/2.20.01/
Official Schema Site
License EULA
Supported Platforms
  • .Net Standard 2.0 and above
  • .Net Core 2.0 and above
  • .Net Framework 4.0 and above

The following code shows how to create an XML document using the Accord-Life Standards nuget.

First the object is constructed and populated, then the LxSerializer is used to convert the object representation into XML.

using System;
using System.Numerics;
using System.IO;
using System.Text;
using LiquidTechnologies.XmlObjects;
using LiquidTechnologies.XmlObjects.AcordLife220;
using System.Xml.Linq;
using LiquidTechnologies.XmlObjects;

namespace LiquidTechnologies.Samples
    public class XmlGeneratorSample
        public static string CreateXml()
            #region Writing
            var reinsuranceRequestElm = new Tns.ReinsuranceRequestElm();
            reinsuranceRequestElm.Id = "id123";
            reinsuranceRequestElm.ReinsReportPeriodEndDate = new LxDateTime(LxDateTimeType.Date, 2000, 2, 2, 0, 0, 0, 0, 0, 0, true);
            reinsuranceRequestElm.ReinsTranModel.Tc = System.Numerics.BigInteger.Parse("0");
            reinsuranceRequestElm.ReinsTranModel.Value = "";
            reinsuranceRequestElm.ReinsReportPeriodStartDate = new LxDateTime(LxDateTimeType.Date, 2000, 2, 2, 0, 0, 0, 0, 0, 0, true);
            var policyActivityLists = new Tns.PolicyActivityList_TypeCt();
                policyActivityLists.SeqNum = System.Numerics.BigInteger.Parse("0");
                policyActivityLists.PolicyActivity.Tc = System.Numerics.BigInteger.Parse("123");
                policyActivityLists.PolicyActivity.Value = "value1";
            var policyActivityLists1 = new Tns.PolicyActivityList_TypeCt();
                policyActivityLists1.SeqNum = System.Numerics.BigInteger.Parse("1");
                policyActivityLists1.PolicyActivity.Tc = System.Numerics.BigInteger.Parse("123");
                policyActivityLists1.PolicyActivity.Value = "value2";

            var serializer = new LxSerializer<Tns.ReinsuranceRequestElm>();
            using (StringWriter writer = new StringWriter())
                serializer.Serialize(writer, reinsuranceRequestElm);
                return writer.ToString();
<?xml version="1.0" encoding="utf-8"?>
<!-- Created with Liquid XML Objects - Unlicensed trial - For evaluation only - -->
<ReinsuranceRequest xmlns:xsi="" id="id123" xmlns="">
  <ReinsTranModel tc="0"></ReinsTranModel>
    <PolicyActivity tc="123">value1</PolicyActivity>
    <PolicyActivity tc="123">value2</PolicyActivity>

Video Tutorial

This video tutorial demonstrates the basic usage of the XML Objects tool, showing how to generate code from an XSD, read an XML document into the object model, modify the data and write out the XML.

Like what you see? Try Liquid Studio Free Free Trial