Validating Your XML To Ensure Integrity

Validating your xml during development will make your work much easier and quicker. Validation instantly shows you errors that would cause deliveries to fail when Pandora receives them. 

Your deliveries to Pandora must contain not just well-formed, but also valid XML. The DDEX standard says that "recipients should reject any DDEX message that is invalid" against the declared schema, so please test before sending to us. 

The beauty of using a public standard like the DDEX ERN is that the schema is openly available to validate your XML structure. Every ERN message contains a declaration (at the top of the xml file) which points to the schema and allowed value sets, so that your XML can be automatically validated. 

A dedicated xml authoring application​ provides instant validation integrated into your development environment, and more robust inline error reporting. A few applications are:

The oXygen XML editor application will validate any xml file and report back to you with simple color-coded status signals. oXygen will highlight any section of code that does not validate. Hovering your mouse over that section of code will present a handy pop-up dialog explaining the error. oXygen is a very powerful tool that provides valuable feedback. 
https://www.oxygenxml.com/

XMLSpy is also a popular tool: 
http://www.altova.com/xmlspy.html

A longer list of XML editor applications is here, be sure to pick one that does validation: 
https://en.wikipedia.org/wiki/Comparison_of_XML_editors

Or, a less expensive method is to use one of the many free online validation tools:
http://www.xmlvalidation.com/
http://www.corefiling.com/opensource/schemaValidate.html
or, search for more
 
Here is an example using the free online tool at xmlvalidation.com

1) Upload your xml file using the "Choose File" button:



2) Click "Validate XML". 
3) The results will show any errors like this:


This provides essential feedback during testing. After fixing problems, run the validator again to ensure that the problems have been fixed. 
 
Here is an example using the free online tool at corefiling.com

In this example we are testing ERN version 3.8.1. 

1) Find the .xsd schema for your ERN version at the top of your xml. It will end in ".xsd". For version 3.8.1 it is: 
http://ddex.net/xml/ern/381/release-notification.xsd
2) Download that .xsd schema file.
3) Upload the .xsd to the tool using the "XML Schema: Choose File" button. 
4) Upload your test ERN xml file using the "XML Instance: Choose File" button.
5) Click "validate" and you will see results like this: 


This provides essential feedback during testing. After fixing problems, run the validator again to ensure that the problems have been fixed. 

DDEX ERN XML Requirements