diff --git a/examples/functions/privateCodes/01-privateCodes.xml b/examples/functions/privateCodes/01-privateCodes.xml
new file mode 100644
index 000000000..6387caab1
--- /dev/null
+++ b/examples/functions/privateCodes/01-privateCodes.xml
@@ -0,0 +1,30 @@
+
+
+ 2023-11-03T16:57:17.545810
+ NDOV
+ NeTEx export
+
+
+
+
+ Test
+ http://test
+ Test
+
+
+
+
+
+
+
+
+ world
+ world
+
+ 2023-01-01T00:00:00
+ 2024-01-01T00:00:00
+
+
+
+
+
diff --git a/xsd/netex_framework/netex_genericFramework/netex_grouping_version.xsd b/xsd/netex_framework/netex_genericFramework/netex_grouping_version.xsd
index 396061e2b..79624e565 100644
--- a/xsd/netex_framework/netex_genericFramework/netex_grouping_version.xsd
+++ b/xsd/netex_framework/netex_genericFramework/netex_grouping_version.xsd
@@ -115,7 +115,11 @@ Rail transport, Roads and Road transport
Reference to a PURPOSE OF GROUPING.
-
+
+
+ DEPRECATED - use privateCodes
+
+
Hyperlinks associated with GROUP OF ENTITIES.
diff --git a/xsd/netex_framework/netex_genericFramework/netex_organisation_version.xsd b/xsd/netex_framework/netex_genericFramework/netex_organisation_version.xsd
index 1ffdb74eb..9a1738d24 100644
--- a/xsd/netex_framework/netex_genericFramework/netex_organisation_version.xsd
+++ b/xsd/netex_framework/netex_genericFramework/netex_organisation_version.xsd
@@ -206,7 +206,11 @@ Rail transport, Roads and Road transport
Public code to use for ORGANISATION.
-
+
+
+ DEPRECATED - use privateCodes
+
+
Company registration number including Country prefix.
@@ -390,7 +394,11 @@ Rail transport, Roads and Road transport
Additional public code used for department.
-
+
+
+ DEPRECATED - use privateCodes
+
+
Contact details for ORGANISATION PART for Public use.
diff --git a/xsd/netex_framework/netex_genericFramework/netex_pointAndLinkSequence_version.xsd b/xsd/netex_framework/netex_genericFramework/netex_pointAndLinkSequence_version.xsd
index 45aceb9f8..c7b1d0242 100644
--- a/xsd/netex_framework/netex_genericFramework/netex_pointAndLinkSequence_version.xsd
+++ b/xsd/netex_framework/netex_genericFramework/netex_pointAndLinkSequence_version.xsd
@@ -101,7 +101,11 @@ Rail transport, Roads and Road transport
Overall distance of LINK SEQUENCE. Can be derived from component LINKs.
-
+
+
+ DEPRECATED - use privateCodes
+
+
PROJECTIONs of LINK SEQUENCE onto another ENTITY or layer.
diff --git a/xsd/netex_framework/netex_responsibility/netex_responsibilitySet_version.xsd b/xsd/netex_framework/netex_responsibility/netex_responsibilitySet_version.xsd
index a72b6bcb4..792de3335 100644
--- a/xsd/netex_framework/netex_responsibility/netex_responsibilitySet_version.xsd
+++ b/xsd/netex_framework/netex_responsibility/netex_responsibilitySet_version.xsd
@@ -155,7 +155,11 @@ Rail transport, Roads and Road transport
Explanation of RESPONSIBILITY SET.
-
+
+
+ DEPRECATED - use privateCodes
+
+
Roles defined by this RESPONSIBILITY SET.
diff --git a/xsd/netex_framework/netex_responsibility/netex_responsibility_version.xsd b/xsd/netex_framework/netex_responsibility/netex_responsibility_version.xsd
index 0b285ffa6..48d049376 100644
--- a/xsd/netex_framework/netex_responsibility/netex_responsibility_version.xsd
+++ b/xsd/netex_framework/netex_responsibility/netex_responsibility_version.xsd
@@ -95,6 +95,11 @@ Rail transport, Roads and Road transport
A list of alternative Key values for an element.
+
+
+ A list of private codes that uniquely identifiy the element. May be used for inter-operating with other (legacy) systems.
+
+
@@ -217,6 +222,27 @@ Rail transport, Roads and Road transport
+
+
+ A list of private codes that uniquely identifiy the element. May be used for inter-operating with other (legacy) systems.
+
+
+
+ Every PrivateCode type must be unique.
+
+
+
+
+
+
+
+ Type for Private Codes.
+
+
+
+
+
+
Identifier of Object of which this is a view.
diff --git a/xsd/netex_framework/netex_responsibility/netex_typeOfValue_version.xsd b/xsd/netex_framework/netex_responsibility/netex_typeOfValue_version.xsd
index 4db6c2639..33558bd80 100644
--- a/xsd/netex_framework/netex_responsibility/netex_typeOfValue_version.xsd
+++ b/xsd/netex_framework/netex_responsibility/netex_typeOfValue_version.xsd
@@ -143,7 +143,11 @@ Rail transport, Roads and Road transport
Default URL for TYPE OF VALUE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_framework/netex_responsibility/netex_validityCondition_version.xsd b/xsd/netex_framework/netex_responsibility/netex_validityCondition_version.xsd
index ea88cc249..931ca5b14 100644
--- a/xsd/netex_framework/netex_responsibility/netex_validityCondition_version.xsd
+++ b/xsd/netex_framework/netex_responsibility/netex_validityCondition_version.xsd
@@ -235,7 +235,11 @@ Rail transport, Roads and Road transport
Entity on which Trigger is based - Trigger value is taken from it.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_framework/netex_reusableComponents/netex_dayType_version.xsd b/xsd/netex_framework/netex_reusableComponents/netex_dayType_version.xsd
index 8ac7b22b7..9c38dfc50 100644
--- a/xsd/netex_framework/netex_reusableComponents/netex_dayType_version.xsd
+++ b/xsd/netex_framework/netex_reusableComponents/netex_dayType_version.xsd
@@ -174,7 +174,11 @@ Rail transport, Roads and Road transport
Description of DAY TYPE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
DAY TYPE length.
diff --git a/xsd/netex_framework/netex_reusableComponents/netex_equipment_version.xsd b/xsd/netex_framework/netex_reusableComponents/netex_equipment_version.xsd
index ee9dcf6f9..eb4df673c 100644
--- a/xsd/netex_framework/netex_reusableComponents/netex_equipment_version.xsd
+++ b/xsd/netex_framework/netex_reusableComponents/netex_equipment_version.xsd
@@ -125,7 +125,11 @@ Rail transport, Roads and Road transport
Name of EQUIPMENT.
-
+
+
+ DEPRECATED - use privateCodes
+
+
A Public code which may be displayed on equipment to identify it.
diff --git a/xsd/netex_framework/netex_reusableComponents/netex_notice_version.xsd b/xsd/netex_framework/netex_reusableComponents/netex_notice_version.xsd
index b4939c303..c65736018 100644
--- a/xsd/netex_framework/netex_reusableComponents/netex_notice_version.xsd
+++ b/xsd/netex_framework/netex_reusableComponents/netex_notice_version.xsd
@@ -166,7 +166,11 @@ Rail transport, Roads and Road transport
Alternative short code associated with Notice.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_framework/netex_reusableComponents/netex_serviceCalendar_version.xsd b/xsd/netex_framework/netex_reusableComponents/netex_serviceCalendar_version.xsd
index 5bb9b23de..ed47d2bdd 100644
--- a/xsd/netex_framework/netex_reusableComponents/netex_serviceCalendar_version.xsd
+++ b/xsd/netex_framework/netex_reusableComponents/netex_serviceCalendar_version.xsd
@@ -333,7 +333,11 @@ Rail transport, Roads and Road transport
Day Number if different from Id.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_framework/netex_reusableComponents/netex_transportOrganisation_version.xsd b/xsd/netex_framework/netex_reusableComponents/netex_transportOrganisation_version.xsd
index 4e9be603e..715b59e3a 100644
--- a/xsd/netex_framework/netex_reusableComponents/netex_transportOrganisation_version.xsd
+++ b/xsd/netex_framework/netex_reusableComponents/netex_transportOrganisation_version.xsd
@@ -502,7 +502,11 @@ Rail transport, Roads and Road transport
A short name of the OPERATIONAL CONTEXT.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_framework/netex_reusableComponents/netex_vehicleType_version.xsd b/xsd/netex_framework/netex_reusableComponents/netex_vehicleType_version.xsd
index e8880cdcc..c6b5738d4 100644
--- a/xsd/netex_framework/netex_reusableComponents/netex_vehicleType_version.xsd
+++ b/xsd/netex_framework/netex_reusableComponents/netex_vehicleType_version.xsd
@@ -159,7 +159,11 @@ Rail transport, Roads and Road transport
Description of TRANSPORT TYPE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
@@ -999,7 +1003,11 @@ Rail transport, Roads and Road transport
Operational Number of VEHICLE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_1/part1_ifopt/netex_ifopt_stopPlace_support.xsd b/xsd/netex_part_1/part1_ifopt/netex_ifopt_stopPlace_support.xsd
index 49a4df1f0..396d174e2 100644
--- a/xsd/netex_part_1/part1_ifopt/netex_ifopt_stopPlace_support.xsd
+++ b/xsd/netex_part_1/part1_ifopt/netex_ifopt_stopPlace_support.xsd
@@ -355,7 +355,11 @@ Rail transport, Roads and Road transport
Alternative Private Code for a STOP PLACE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
Type of identifier.
diff --git a/xsd/netex_part_1/part1_networkDescription/netex_activation_version.xsd b/xsd/netex_part_1/part1_networkDescription/netex_activation_version.xsd
index 6fa5e40fb..e320922db 100644
--- a/xsd/netex_part_1/part1_networkDescription/netex_activation_version.xsd
+++ b/xsd/netex_part_1/part1_networkDescription/netex_activation_version.xsd
@@ -255,7 +255,11 @@ Rail transport, Roads and Road transport
Short Name of ACTIVATION POINT.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_1/part1_networkDescription/netex_line_version.xsd b/xsd/netex_part_1/part1_networkDescription/netex_line_version.xsd
index cd4c5cc8b..3ae8d56b5 100644
--- a/xsd/netex_part_1/part1_networkDescription/netex_line_version.xsd
+++ b/xsd/netex_part_1/part1_networkDescription/netex_line_version.xsd
@@ -396,7 +396,11 @@ Rail transport, Roads and Road transport
Public identifier of a LINe.
-
+
+
+ DEPRECATED - use privateCodes
+
+
An alternative code that uniquely identifies the LINE specifically for use in AVMS systems. For VDV compatibility.
@@ -721,7 +725,11 @@ Rail transport, Roads and Road transport
Public code to show for Destination.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_1/part1_tacticalPlanning/netex_servicePattern_version.xsd b/xsd/netex_part_1/part1_tacticalPlanning/netex_servicePattern_version.xsd
index f99a95fca..407730f62 100644
--- a/xsd/netex_part_1/part1_tacticalPlanning/netex_servicePattern_version.xsd
+++ b/xsd/netex_part_1/part1_tacticalPlanning/netex_servicePattern_version.xsd
@@ -312,7 +312,11 @@ Rail transport, Roads and Road transport
A PUBLIC code that uniquely identifies the STOP POINT.
-
+
+
+ DEPRECATED - use privateCodes
+
+
An alternative code that uniquely identifies the STOP POINT. pecifically for use in AVMS systems that require an alias, if. For VDV compatibility.
diff --git a/xsd/netex_part_1/part1_tacticalPlanning/netex_stopAssignment_version.xsd b/xsd/netex_part_1/part1_tacticalPlanning/netex_stopAssignment_version.xsd
index 20fcf2cb7..77fe9293b 100644
--- a/xsd/netex_part_1/part1_tacticalPlanning/netex_stopAssignment_version.xsd
+++ b/xsd/netex_part_1/part1_tacticalPlanning/netex_stopAssignment_version.xsd
@@ -124,7 +124,11 @@ Rail transport, Roads and Road transport
Whether alignment is for alighting use. Default is 'true'.
-
+
+
+ DEPRECATED - use privateCodes
+
+
Reference or inline declaration of SCHEDULED STOP POINT which is being assigned
diff --git a/xsd/netex_part_1/part1_tacticalPlanning/netex_timeDemandType_version.xsd b/xsd/netex_part_1/part1_tacticalPlanning/netex_timeDemandType_version.xsd
index d968bb1fe..6ac668159 100644
--- a/xsd/netex_part_1/part1_tacticalPlanning/netex_timeDemandType_version.xsd
+++ b/xsd/netex_part_1/part1_tacticalPlanning/netex_timeDemandType_version.xsd
@@ -173,7 +173,11 @@ Rail transport, Roads and Road transport
Description of TIME DEMAND TYPE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_2/part2_journeyTimes/netex_interchange_version.xsd b/xsd/netex_part_2/part2_journeyTimes/netex_interchange_version.xsd
index 1dccc4ade..8543987a2 100644
--- a/xsd/netex_part_2/part2_journeyTimes/netex_interchange_version.xsd
+++ b/xsd/netex_part_2/part2_journeyTimes/netex_interchange_version.xsd
@@ -422,7 +422,11 @@ Rail transport, Roads and Road transport
Description of SCHEDULED STOP POINT feeding INTERCHANGE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
An alternative code that uniquely identifies the INTERCHANGE. Specifically for use in AVMS systems. For VDV compatibility.
diff --git a/xsd/netex_part_2/part2_vehicleService/netex_vehicleService_version.xsd b/xsd/netex_part_2/part2_vehicleService/netex_vehicleService_version.xsd
index c6b38cd5c..c8c9791cc 100644
--- a/xsd/netex_part_2/part2_vehicleService/netex_vehicleService_version.xsd
+++ b/xsd/netex_part_2/part2_vehicleService/netex_vehicleService_version.xsd
@@ -206,7 +206,11 @@ Rail transport, Roads and Road transport
Description of BLOCK.
-
+
+
+ DEPRECATED - use privateCodes
+
+
@@ -773,7 +777,11 @@ Rail transport, Roads and Road transport
Numeric identifier of COURSE of JOURNEYS.
-
+
+
+ DEPRECATED - use privateCodes
+
+
How long the run takes to prepare.
diff --git a/xsd/netex_part_3/part3_fares/netex_farePrice_version.xsd b/xsd/netex_part_3/part3_fares/netex_farePrice_version.xsd
index 1d90fe9f9..1c7647158 100644
--- a/xsd/netex_part_3/part3_fares/netex_farePrice_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_farePrice_version.xsd
@@ -262,7 +262,11 @@ Rail transport, Roads and Road transport
Description of FARE PRICE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
Start date for selling product or service at the PRICE.
diff --git a/xsd/netex_part_3/part3_fares/netex_fareProduct_version.xsd b/xsd/netex_part_3/part3_fares/netex_fareProduct_version.xsd
index 75698aed4..6375d6de6 100644
--- a/xsd/netex_part_3/part3_fares/netex_fareProduct_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_fareProduct_version.xsd
@@ -175,7 +175,11 @@ Rail transport, Roads and Road transport
DescriptionElements for a PRODUCT.
-
+
+
+ DEPRECATED - use privateCodes
+
+
URL for further information.
diff --git a/xsd/netex_part_3/part3_fares/netex_fareSeries_version.xsd b/xsd/netex_part_3/part3_fares/netex_fareSeries_version.xsd
index ccb2572bc..1945bee02 100644
--- a/xsd/netex_part_3/part3_fares/netex_fareSeries_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_fareSeries_version.xsd
@@ -180,7 +180,11 @@ Rail transport, Roads and Road transport
Description Elements for a SERIES CONSTRAINT.
-
+
+
+ DEPRECATED - use privateCodes
+
+
String to use to represent Itinerary.
diff --git a/xsd/netex_part_3/part3_fares/netex_fareStructureElement_version.xsd b/xsd/netex_part_3/part3_fares/netex_fareStructureElement_version.xsd
index 4fc6160bd..697bc53bf 100644
--- a/xsd/netex_part_3/part3_fares/netex_fareStructureElement_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_fareStructureElement_version.xsd
@@ -162,7 +162,11 @@ Rail transport, Roads and Road transport
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_3/part3_fares/netex_fareStructure_version.xsd b/xsd/netex_part_3/part3_fares/netex_fareStructure_version.xsd
index 11ffb1718..d231ea832 100644
--- a/xsd/netex_part_3/part3_fares/netex_fareStructure_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_fareStructure_version.xsd
@@ -186,7 +186,11 @@ Rail transport, Roads and Road transport
-
+
+
+ DEPRECATED - use privateCodes
+
+
@@ -215,7 +219,11 @@ Rail transport, Roads and Road transport
Elements for a FARE ELEMENT IN SEQUENCE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_3/part3_fares/netex_geographicStructureFactor_version.xsd b/xsd/netex_part_3/part3_fares/netex_geographicStructureFactor_version.xsd
index 7457ad7c8..8d0d2e46c 100644
--- a/xsd/netex_part_3/part3_fares/netex_geographicStructureFactor_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_geographicStructureFactor_version.xsd
@@ -291,7 +291,11 @@ Rail transport, Roads and Road transport
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_3/part3_fares/netex_qualityStructureFactor_version.xsd b/xsd/netex_part_3/part3_fares/netex_qualityStructureFactor_version.xsd
index 23cfcef99..365ec73b7 100644
--- a/xsd/netex_part_3/part3_fares/netex_qualityStructureFactor_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_qualityStructureFactor_version.xsd
@@ -117,7 +117,11 @@ Rail transport, Roads and Road transport
-
+
+
+ DEPRECATED - use privateCodes
+
+
@@ -260,7 +264,11 @@ Rail transport, Roads and Road transport
-
+
+
+ DEPRECATED - use privateCodes
+
+
@@ -347,7 +355,11 @@ Rail transport, Roads and Road transport
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_3/part3_fares/netex_salesOfferPackage_version.xsd b/xsd/netex_part_3/part3_fares/netex_salesOfferPackage_version.xsd
index 4754b4331..8d4438563 100644
--- a/xsd/netex_part_3/part3_fares/netex_salesOfferPackage_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_salesOfferPackage_version.xsd
@@ -210,7 +210,11 @@ Rail transport, Roads and Road transport
Elements for SALES OFFER PACKAGE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_3/part3_fares/netex_timeStructureFactor_version.xsd b/xsd/netex_part_3/part3_fares/netex_timeStructureFactor_version.xsd
index 0d881a4d7..274c735f2 100644
--- a/xsd/netex_part_3/part3_fares/netex_timeStructureFactor_version.xsd
+++ b/xsd/netex_part_3/part3_fares/netex_timeStructureFactor_version.xsd
@@ -301,7 +301,11 @@ Rail transport, Roads and Road transport
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_3/part3_parkingTariff/netex_parkingTariff_version.xsd b/xsd/netex_part_3/part3_parkingTariff/netex_parkingTariff_version.xsd
index 8e7bb6281..4100c4b5b 100644
--- a/xsd/netex_part_3/part3_parkingTariff/netex_parkingTariff_version.xsd
+++ b/xsd/netex_part_3/part3_parkingTariff/netex_parkingTariff_version.xsd
@@ -233,7 +233,11 @@ Rail transport, Roads and Road transport
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_3/part3_salesTransactions/netex_customerPurchasePackage_version.xsd b/xsd/netex_part_3/part3_salesTransactions/netex_customerPurchasePackage_version.xsd
index 4487639ed..c7943cb1b 100644
--- a/xsd/netex_part_3/part3_salesTransactions/netex_customerPurchasePackage_version.xsd
+++ b/xsd/netex_part_3/part3_salesTransactions/netex_customerPurchasePackage_version.xsd
@@ -545,7 +545,11 @@ Rail transport, Roads and Road transport
Elements for CUSTOMER PURCHASE PACKAGE.
-
+
+
+ DEPRECATED - use privateCodes
+
+
diff --git a/xsd/netex_part_3/part3_salesTransactions/netex_travelDocument_version.xsd b/xsd/netex_part_3/part3_salesTransactions/netex_travelDocument_version.xsd
index 35a832687..bb64aee6d 100644
--- a/xsd/netex_part_3/part3_salesTransactions/netex_travelDocument_version.xsd
+++ b/xsd/netex_part_3/part3_salesTransactions/netex_travelDocument_version.xsd
@@ -153,7 +153,11 @@ Rail transport, Roads and Road transport
Description of TRAVEL DOCUMENT.
-
+
+
+ DEPRECATED - use privateCodes
+
+