All XML files based on an XML Schema Definition (XSD) have a "preamble". This preamble points to the XSD that is used to validate the XML file. This also applies to all XML based DDEX messages and files.
Below is a valid preamble for a
NewReleaseMessage created in accordance for ERN 4.1.1:
<?xml version="1.0" encoding="UTF-8"?> <ern:NewReleaseMessage xmlns:ern="http://ddex.net/xml/ern/411" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://ddex.net/xml/ern/411 http://ddex.net/xml/ern/411/release-notification.xsd" LanguageAndScriptCode="en">
The six lines contain the following information:
NewReleaseMessage") with a namespace prefix (here: "
ern" is "
". While this full namespace looks like a URL that points to a web resource, it is, actually, not; it is a URI (Uniform Resource Identifier) that identifies the XSD.
xmlns) for all tags in that message.
The preamble above points to an XSD file hosted on a DDEX Server. It can also point to a file in your local hard drive, In that case that line would be, for instance:
There is no need to reference any other XML schema definition files (e.g. the ones containing the allowed value sets) as these XSD files are imported by the main XSD file