ISO20022.XSD

ISO20022.XSD is a powerful dotnet library that converts XSD schemas to JSON format, enabling seamless data manipulation and integration. Perfect for developers working with ISO 20022 standards, it also supports transforming your ngx-iso-form JSON data into fully compliant ISO 20022 payment messages. This powerful solution bridges the gap between form data and financial messaging standards, making the development process more efficient and straightforward.

Features

  • Convert ISO20022 XSD to ngx-iso-form compaitible JSON.

Install

dotnet add package ISO20022.XSD
Install-Package ISO20022.XSD

Convert ISO 20022 XSD to JSON

Usage
                                
                                    using ISO20022.XSD;
                                    
                                    string xsdFileName = "camt.053.001.10.xsd";
                                    var fileInfo = new FileInfo(xsdFileName);
                                    if (File.Exists(fileName) && fileInfo.Extension.Equals(".xsd"))
                                    {
                                        XsdToJson xsdLib = new(fileName);
                                        xsdLib.Convert();
                                        File.AppendAllText(fileInfo.FullName.Replace(".xsd", ".json"), xsdLib.SchemaJson);
                                    }
                                
                        
JSON Schema
                                    
                                        {
                                            "namespace": "urn:iso:std:iso:20022:tech:xsd:camt.053.001.10",
                                            "schemaElement": {
                                                "id": "Document",
                                                "name": "Document",
                                                "dataType": null,
                                                "minOccurs": "1",
                                                "maxOccurs": null,
                                                "minLength": null,
                                                "maxLength": null,
                                                "pattern": null,
                                                "fractionDigits": null,
                                                "totalDigits": null,
                                                "minInclusive": null,
                                                "maxInclusive": null,
                                                "values": null,
                                                "isCurrency": false,
                                                "xpath": "Document",
                                                "elements":[
                                                  ...
                                                ]
                                            }
                                        }