All XML files based on a 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:
UTF-8". This line must be the very first line in the XML file and should always be as shown above.
NewReleaseMessage") with a namespace prefix (here: "
ern" is "
xmlns) for all tags in that message.
The preamble above points to a 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