UblSharp
UblSharp is a C# / .NET / XML library for working with OASIS UBL 2.0 and 2.1 documents.
It supports all .NET full framework versions from .NET 2.0 - 4.6 and .NET Standard 1.0 and higher. See 'Available packages' below for a table of available packages and framework compatibility.
Installation
Use the nuget packages. See the table below for an overview of available packages.
For example, using the Visual Studio package manager console:
Install-Package UblSharp
Install-Package UblSharp.Validation
Or using the dotnet cli:
dotnet add package UblSharp
Available packages
Package | .NET Support | Description |
---|---|---|
UblSharp | net20 - net46, netstandard1.0+ |
Contains all UBL 2.0/2.1 common, aggregate and document types, annotated with System.Xml.* attributes. Also contains some basic serialization functions. |
UblSharp.Validation | net20 - net46, netstandard2.0* | Contains validation functions to validate XML documents and UblSharp (.NET) objects using the OASIS UBL 2.1 xsd specifications. |
UblSharp.SEeF | net20 - net46, netstandard1.0+ |
Additional types to support 'Standaard Energie eFactuur (SEeF)' UBL documents. |
UblSharp.SCSN | net20 - net46, netstandard1.0+ |
Additional types to support 'Smart Connected Supplier Network (SCSN)' UBL documents. |
UblSharp.Generator.Core | net46 | The code generator library used to generate C# classes from XSD schemas. |
* Validation is not available on netstandard1.0, because System.Xml.Schema and validation is only available on desktop .net and netstandard2.0 and higher.
Credits
- The (test) generator of UblSharp was taken from https://github.com/Gammern/ubllarsen (a lot has changed since).