Spillgebees.NeTEx.Models
0.1.3
dotnet add package Spillgebees.NeTEx.Models --version 0.1.3
NuGet\Install-Package Spillgebees.NeTEx.Models -Version 0.1.3
<PackageReference Include="Spillgebees.NeTEx.Models" Version="0.1.3" />
<PackageVersion Include="Spillgebees.NeTEx.Models" Version="0.1.3" />
<PackageReference Include="Spillgebees.NeTEx.Models" />
paket add Spillgebees.NeTEx.Models --version 0.1.3
#r "nuget: Spillgebees.NeTEx.Models, 0.1.3"
#:package Spillgebees.NeTEx.Models@0.1.3
#addin nuget:?package=Spillgebees.NeTEx.Models&version=0.1.3
#tool nuget:?package=Spillgebees.NeTEx.Models&version=0.1.3
Spillgebees.NeTEx.Models
Pre-generated C# XML bindings for NeTEx (Network Timetable Exchange) XSD schemas.
Each version package provides strongly-typed classes for a specific NeTEx-CEN/NeTEx release tag. Install only the version you need, or use the meta-package to get all versions at once.
Available versions
Getting started
# Install a single version
dotnet add package Spillgebees.NeTEx.Models.V1_3_1
# Or install all versions at once
dotnet add package Spillgebees.NeTEx.Models
Usage
Each version package contains three sub-namespaces:
| Sub-namespace | XML Namespace | Description |
|---|---|---|
.NeTEx |
http://www.netex.org.uk/netex |
NeTEx types |
.SIRI |
http://www.siri.org.uk/siri |
SIRI types (subset bundled with NeTEx) |
.GML |
http://www.opengis.net/gml/3.2 |
GML types (geographic markup) |
using System.Text;
using System.Xml;
using System.Xml.Serialization;
using Spillgebees.NeTEx.Models.V1_3_1.NeTEx;
var delivery = new PublicationDeliveryStructure
{
PublicationTimestamp = DateTimeOffset.UtcNow,
ParticipantRef = "my-data-provider",
Description = new MultilingualString { Value = "Stop places export" },
};
var serializer = new XmlSerializer(typeof(PublicationDeliveryStructure));
using var stream = new MemoryStream();
using var xmlWriter = XmlWriter.Create(stream, new XmlWriterSettings
{
Encoding = new UTF8Encoding(encoderShouldEmitUTF8Identifier: false),
Indent = true,
});
serializer.Serialize(xmlWriter, delivery);
// <?xml version="1.0" encoding="utf-8"?>
// <PublicationDelivery xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ...>
// <PublicationTimestamp>2026-02-13T12:00:00+00:00</PublicationTimestamp>
// <ParticipantRef>my-data-provider</ParticipantRef>
// <Description>Stop places export</Description>
// </PublicationDelivery>
Custom generation
If you need full control over namespaces or want to target a different NeTEx version, use the Spillgebees.Transmodel.Generator CLI tool to generate models from the XSD schemas directly.
License
EUPL-1.2. The NeTEx schemas are licensed under GPL-3.0 by CEN.
| Product | Versions 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. |
-
net10.0
- Spillgebees.NeTEx.Models.V1_2 (>= 0.1.3)
- Spillgebees.NeTEx.Models.V1_2_2 (>= 0.1.3)
- Spillgebees.NeTEx.Models.V1_2_3 (>= 0.1.3)
- Spillgebees.NeTEx.Models.V1_3_0 (>= 0.1.3)
- Spillgebees.NeTEx.Models.V1_3_1 (>= 0.1.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.