Spillgebees.SIRI.Models 0.1.5

dotnet add package Spillgebees.SIRI.Models --version 0.1.5
                    
NuGet\Install-Package Spillgebees.SIRI.Models -Version 0.1.5
                    
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="Spillgebees.SIRI.Models" Version="0.1.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spillgebees.SIRI.Models" Version="0.1.5" />
                    
Directory.Packages.props
<PackageReference Include="Spillgebees.SIRI.Models" />
                    
Project file
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 Spillgebees.SIRI.Models --version 0.1.5
                    
#r "nuget: Spillgebees.SIRI.Models, 0.1.5"
                    
#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 Spillgebees.SIRI.Models@0.1.5
                    
#: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=Spillgebees.SIRI.Models&version=0.1.5
                    
Install as a Cake Addin
#tool nuget:?package=Spillgebees.SIRI.Models&version=0.1.5
                    
Install as a Cake Tool

Spillgebees.SIRI.Models

Pre-generated C# XML bindings for SIRI (Service Interface for Real-time Information) XSD schemas.

Each version package provides strongly-typed classes for a specific SIRI-CEN/SIRI release tag. Install only the version you need, or use the meta-package to get all versions at once.

Available versions

SIRI version Package NuGet
v2.1 Spillgebees.SIRI.Models.V2_1 NuGet
v2.2 Spillgebees.SIRI.Models.V2_2 NuGet
All versions Spillgebees.SIRI.Models NuGet

Getting started

# Install a single version
dotnet add package Spillgebees.SIRI.Models.V2_2

# Or install all versions at once
dotnet add package Spillgebees.SIRI.Models

Usage

Each version package contains seven sub-namespaces:

Sub-namespace XML Namespace Description
.SIRI http://www.siri.org.uk/siri Core SIRI types
.IFOPT http://www.ifopt.org.uk/ifopt IFOPT types
.ACSB http://www.ifopt.org.uk/acsb Accessibility types
.DATEX2 http://datex2.eu/schema/2_0RC1/2_0 DATEX2 types
.WSDL http://wsdl.siri.org.uk WSDL/SOAP types
.GML http://www.opengis.net/gml/3.2 GML types (geographic markup)
.W3 http://www.w3.org/XML/1998/namespace W3 types
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using Spillgebees.SIRI.Models.V2_2.SIRI;

var siri = new Siri
{
    ServiceDelivery = new ServiceDelivery
    {
        ResponseTimestamp = DateTimeOffset.UtcNow,
    },
};

var serializer = new XmlSerializer(typeof(Siri));
using var stream = new MemoryStream();
using var xmlWriter = XmlWriter.Create(stream, new XmlWriterSettings
{
    Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false),
    Indent = true,
});
serializer.Serialize(xmlWriter, siri);

// <?xml version="1.0" encoding="utf-8"?>
// <Siri xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...>
//   <ServiceDelivery>
//     <ResponseTimestamp>2026-02-13T12:00:00+00:00</ResponseTimestamp>
//   </ServiceDelivery>
// </Siri>

Custom generation

If you need full control over namespaces or want to target a different SIRI version, use the Spillgebees.Transmodel.Generator CLI tool to generate models from the XSD schemas directly.

License

EUPL-1.2. The SIRI schemas are published by CEN on the SIRI-CEN/SIRI repository without an explicit open-source license.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.5 82 2/16/2026
0.1.4 80 2/15/2026
0.1.3 80 2/13/2026
0.1.1 82 2/13/2026
0.1.0 77 2/13/2026