C# Class HandCoded.FpML.Conversions.R1_0__R2_0

The R1_0__R2_0 class implements a conversion from FpML 1.0 to FpML 2.0. The specific changes needed (other than basic DOCTYPE changes) are:
  • The <product> container element was removed.
  • Superfluous type and base attributes are removed.
Inheritance: HandCoded.Meta.DirectConversion
Show file Open project: formicary/fpml-toolkit-csharp

Public Methods

Method Description
Convert ( XmlDocument source, HandCoded helper ) : XmlDocument

Applies the Conversion to a XmlDocument instance to create a new XmlDocument.

R1_0__R2_0 ( ) : System

Constructs a CR1_0__R2_0 instance.

Private Methods

Method Description
Transcribe ( XmlNode context, XmlDocument document, XmlNode parent ) : void

Recursively copies the structure of the old FpML 1-0 document into a new FpML 2-0 document adjusting the elements and attributes as necessary.

Method Details

Convert() public method

Applies the Conversion to a XmlDocument instance to create a new XmlDocument.
public Convert ( XmlDocument source, HandCoded helper ) : XmlDocument
source System.Xml.XmlDocument The to be converted.
helper HandCoded A used to guide conversion.
return System.Xml.XmlDocument

R1_0__R2_0() public method

Constructs a CR1_0__R2_0 instance.
public R1_0__R2_0 ( ) : System
return System