ISO20022.XSD
1.0.0
dotnet add package ISO20022.XSD --version 1.0.0
NuGet\Install-Package ISO20022.XSD -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ISO20022.XSD" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="ISO20022.XSD" Version="1.0.0" />
<PackageReference Include="ISO20022.XSD" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add ISO20022.XSD --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ISO20022.XSD, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package ISO20022.XSD@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=ISO20022.XSD&version=1.0.0
#tool nuget:?package=ISO20022.XSD&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ISO 20022 Library
ISO20022.XSD
ISO20022.XSD is a .NET library designed to convert ISO 20022 XSD files into standard JSON format.
This library simplifies the processing and integration of ISO 20022 messages in various applications.
Use Case
using ISO20022.XSD;
var fileInfo = new FileInfo(fileName);
if (File.Exists(fileName) && fileInfo.Extension.Equals(".xsd"))
{
XsdToJson xsdLib = new(fileName);
xsdLib.Convert();
File.AppendAllText(fileInfo.FullName.Replace(".xsd", ".json"), xsdLib.SchemaJson);
}
Model of JSON
public class XsdSchema
{
public required string Namespace { get; set; }
public required SchemaElement SchemaElement { get; set; }
}
public class SchemaElement
{
public string? Id { get; set; }
public string? Name { get; set; }
public string? DataType { get; set; }
public string? MinOccurs { get; set; }
public string? MaxOccurs { get; set; }
public string? MinLength { get; set; }
public string? MaxLength { get; set; }
public string? Pattern { get; set; }
public string? FractionDigits { get; set; }
public string? TotalDigits { get; set; }
public string? MinInclusive { get; set; }
public string? MaxInclusive { get; set; }
public string[]? Values { get; set; }
public bool IsCurrency { get; set; }
public string? XPath { get; set; }
public List<SchemaElement> Elements { get; set; }
}
Example
{
"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":[
...
]
}
}
Notes
- Throw JsonException in the case where it found deep nested node structure.
- CurrentDepth (64) is equal to or larger than the maximum allowed depth of (64)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on ISO20022.XSD:
| Package | Downloads |
|---|---|
|
ISO20022.Suite
ISO 20022 is the dotnet library which help to parse, create ISO 200022 messages in the fastes way possible with the predefined rule sets. It also helps to convert your ISO 20022 XSD to JSON |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 386 | 9/4/2024 |