How to best test IMDE xml files by using xsd?

With the right tools and the inline inclusion of the different xsd files that comprise IMDE, the testing is fairly simple

Since IMDE is a modular xml format each module has it's own xsd and there is no "complete" xsd available. This modular approach and xsd per module also makes implementing updates to specific modules simple as you can easily combine different versions of the modules with each other.

By including inline references per module to online available xsd files and by using a tool that can utilize these inline references, there is no need for a comprehensive xsd that spans all the modules.

Notepad ++

Our tool of choice to test an IMDE xml is the free Notepad ++ software in combination with the XML Tools plugin.

Install

  1. Download and install Notepad ++
  2. Download and install XML Tools plugin from within Notepad ++ under Plugins => Plugins adminxml tools menu

Test IMDE xml

  1. Load your xml into Notepad ++
  2. Validate the xml by selecting under Plugins => Plugins admin => Validate now (or press ctrl + alt + shift + M)xml tools
  3. Any validation errors will be inserted in the xml where applicable (in the example below the node "Languages" was misspelled)validation of nodes