Spillgebees.NeTEx.Models.V1_2_2
0.1.4
dotnet add package Spillgebees.NeTEx.Models.V1_2_2 --version 0.1.4
NuGet\Install-Package Spillgebees.NeTEx.Models.V1_2_2 -Version 0.1.4
<PackageReference Include="Spillgebees.NeTEx.Models.V1_2_2" Version="0.1.4" />
<PackageVersion Include="Spillgebees.NeTEx.Models.V1_2_2" Version="0.1.4" />
<PackageReference Include="Spillgebees.NeTEx.Models.V1_2_2" />
paket add Spillgebees.NeTEx.Models.V1_2_2 --version 0.1.4
#r "nuget: Spillgebees.NeTEx.Models.V1_2_2, 0.1.4"
#:package Spillgebees.NeTEx.Models.V1_2_2@0.1.4
#addin nuget:?package=Spillgebees.NeTEx.Models.V1_2_2&version=0.1.4
#tool nuget:?package=Spillgebees.NeTEx.Models.V1_2_2&version=0.1.4
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
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Spillgebees.NeTEx.Models.V1_2_2:
| Package | Downloads |
|---|---|
|
Spillgebees.NeTEx.Models
Meta-package that includes pre-generated C# XML bindings for all official NeTEx (Network Timetable Exchange) schema versions. Install this package to get bindings for every supported version, or install individual version packages for a smaller footprint. |
GitHub repositories
This package is not used by any popular GitHub repositories.