ReferencingNeTExSchema - nick-knowles/NeTEx GitHub Wiki
An NeTEx XML document contains data marked up with XML tags that conform with a given version of the NeTEx schema.
The schema to use to validate the document is given by the xsi:schemaLocation attribute in the document header. For example , publication.xsd in the following excerpt.
<?xml version="1.0" encoding="UTF-8"?>
<PublicationDelivery xmlns="http://www.netex.org.uk/netex"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:siri="http://www.siri.org.uk/siri" version="1.0"
xsi:schemaLocation="http://www.netex.org.uk/netex ../../../xsd/NeTEx_publication.xsd">
<PublicationTimestamp>20209-12-17T09:30:46.0Z</PublicationTimestamp>
<ParticipantRef>SYS001</ParticipantRef>
<dataObjects>
<CompositeFrame version="any" id="op:10000">
::::: contents
</CompositeFrame>
</dataObjects>
</PublicationDelivery>
Schema locations
The schema location may be
- Relative to the documents location - as above.
- An absolute reference (Eg http://mystuff.eu/schemas),
- Mediated by an XML catalogue or other tool configuration mechanism to resolve schema references.