-
Notifications
You must be signed in to change notification settings - Fork 0
NeTExXMLDocument
A NeTEx XML document is a computer file containing XML data that conforms to the NeTEx schema. It must contain a root PublicationDelivery element that that indicates the schema and the version to which the document belongs. The document can then be validated agains the schema to check that it is correct, that is to say, well-formed XML that conforms to the NeTEx schema and also satisfies the key and Referential integrity constraints specified by the NeTEx XML Schema.
The PublicationDelivery element contains two sections:
- Header comprising a timestamp and an optional PublicationRequest element that indicates the contents of the document.
- Payload comprising a dataObjects tag, within which the "payload" content of the document is given, made up of data organised within tags from the NETEx schema in the prescribed order and format. In most cases VERSION FRAMEs will be used as the top level elements to organise th content into related groups.
The following examples shows a PublicationDelivery element with a header and a payload consisting of a COMPOSITE FRAME containing a number of other frames of different types (their detailed contents are not shown).
<PublicationDelivery version="ntx:1.1"
xsi:schemaLocation=http://www.netex.org.uk/netex NeTEx_publication.xsd
xmlns="http://www.netex.org.uk/netex"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:ifopt="http://www.ifopt.org.uk/ifopt"
xmlns:gml=http://www.opengis.net/gml/3.2
xmlns:core=http://www.govtalk.gov.uk/core
xmlns:siri=http://www.siri.org.uk/siri
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!--==== HEADER ==== -->
<PublicationTimestamp>2001-12-17T09:30:47.0Z</PublicationTimestamp>
<ParticipantRef>mysis:SYS001</ParticipantRef>
<PublicationRequest version="1.0">
<RequestTimestamp>2001-12-17T09:30:47.0Z</RequestTimestamp>
<topics>
<NetworkFrameTopic>
<Current/>
<NetworkFilterByValue>
<objectReferences>
<TypeOfFrameRef ref="fxc:UK_PI_LINE_OFFER" versionRef="1.0" />
<OperatorRef version="1.0" ref="noc:METR"/>
<LineRef ref="mb:Line@1"/>
</objectReferences>
<places>
<CountryRef ref="uk" refPrincipality="iso1366-2:GB-ENG"/>
<TopographicPlaceRef
ref="nptgLocality:E0054812">Crawley<’TopographicPlaceRef>
</places>
</NetworkFilterByValue>
</NetworkFrameTopic>
</topics>
</PublicationRequest>
<!--==== PAYLOAD ==== -->
<dataObjects>
<CompositeFrame version="3.0" id="epd:UK: METR:CompositeFrame_UK_PI_LINE_OFFER:Line-1:mb”
reponsibilityetRef="mb:timetable_data"/>
<ValidBetween>
<FromDate>2019-01-01T09:02:30.0Z</FromDate>
<ToDate>2020-01:01T00:02:30.0Z</ToDate>
</ValidBetween>
<TypeOfFrameRef ref="fxc:UK_PI_LINE_OFFER" versionRef="1.0" />
<codespaces>
<Codespace id="mb_data">
<Xmlns>mb</Xmlns>
<XmlnsUrl>http://www.metrobus.co.uk/</XmlnsUrl>
<Description>Metrobus data</Description>
</Codespace>
<CodespaceRef id="fxc_metadata">fxc</CodespaceRef>
<CodespaceRef id="epip_data">epd</CodespaceRef>
</codespaces>
<FrameDefaults>
<DefaultResponsibilitySetRef ref="mb:timetable_data"/>
<DefaultCodespaceRef ref="fxc_data"/>
</FrameDefaults
<frames>
<SiteFrame version="2.1" id="epd:UK:METR:SiteFrame_UK_PI_STOP:Line@1:mb">
<TypeOfFrameRef ref="fxc:UK_PI_STOP" versionRef="1.0" />
<prerequisites>
<ResourceFrameRef version="any" ref="epd:UK:METR:ResourceFrame_UK_PI_COMMON:Line@1"/>
</prerequisites>
::::: Etc., etc., Specific Frame contents :::::
</SiteFrame>
<ServiceFrame version="2.1" id=“epd:UK:METR:ServiceFrame_UK_PI_NETWORK:Line@1:mb">
<TypeOfFrameRef ref="fxc:UK_PI_NETWORK" versionRef="1.0" />
::::: Etc., etc., Specific Frame contents :::::
</ServiceFrame>
<TimetableFrame version="2.4" id="epd:UK:METR:TimetableFrame_UK_PI_TIMETABLE:Line@1:mb”>
<TypeOfFrameRef ref="fxc:UK_PI_TIMETABLE" versionRef="1.0" />
<prerequisites>
<ServiceCalendarFrameRef version="any" ref=”epd:UK:METR::ServiceCalendarFrame_UK_PI_CALENDAR:Line@1:mb-"/>
</prerequisites>
::::: Etc., etc., Specific Frame contents :::::
</TimetableFrame>
<ServiceCalendarFrame version="1.6" id="epd:UK:METR:ServiceCalendarFrame_UK_PI_CALENDAR:Line@1”>
<TypeOfFrameRef ref="fxc:UK_PI_CALENDAR" versionRef="1.0" />
::::: Etc., etc., Specific Frame contents :::::
</serviceCalendarFrame >
<ResourceFrame version="1.6" id="epd:UK:METR:ResourceFrame_UK_PI_COMMON:Line@1:mb”>
<TypeOfFrameRef ref="fxc:UK_PI_COMMON" versionRef="1.0" />
::::: Etc., etc., Specific Frame contents :::::
</ResourceFrame>
<ResourceFrame version="1.0" id="fxc:UK:DFT:ResourceFrame_UK_PI_METADATA:FXC">
<TypeOfFrameRef ref="fxc:UK_PI_METADATA" versionRef="1.0" />
::::: Etc., etc., Specific Frame contents :::::
</ResourceFrame>
</frames>
</CompositeFrame>
</dataObjects>
</PublicationDelivery
NeTEx Wiki Home. CEN NeTEx GITHUB