


The use of CODESPACEs in NeTEx allows an economical encoding of identifiers in an XML document so that a common prefix does not have to repeated on each element in the document. Note that the codespace prefix used in front of data elemenst can be different from the codespace identifier. The following example shows the declaration of two codespaces in a ], one of which is set as the default for the frame. These can be declared on an frame Example For example, The following are some fictional examples of Codespace PREFIXES use for different identifiers:, where ‘nptgLocality = Ī CODESPACE is specified as a path expression by using internet domains which have a mechanism for registering global uniqueness, for example, foo.com, or xxx.de. Examples of using codespacesĮach CODESPACE has an identifier which may be used in the document. Multiple CODESPACEs can be used within a document.
#Netex g code#
In NeTEx, the actual structure of an identifier can be arbitrary and is indicated by its CODESPACE, which also establishes a context within which a given code structure is unique. It is therefore essential to make sure that identifiers are unique and stable throughout an object’s lifecycle. The data exchanged with NeTEx may come from multiple sources and many diffiernet stakeholders, is exchanged repeatedly, and may be integrated with other data sets in many different ways. A CODESPACE defines the context within which an identifier of an object in a document is unique (ie a namespace for data).
