Skip to main content

XML file specification

XML file described in this document can be used as a data carrier together with several integration methods.

In case of integrity errors, such as missing XML tags, the file will be ignored. If there are errors in the variable data, such as missing information and/or invalid values, the order will be marked as invalid in nShift Delivery.

Normally, the following XML declaration is used:

 <?xml version="1.0" encoding="ISO-8859-1"?>

If Unicode is used, one of following options is valid, depending on type:

<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-16"?>

There are characters that can occur in variable data that need to be entered so that the XML parser can interpret them correctly:

  • & is entered as &amp;

  • < is entered as &lt;

  • > is entered as &gt;

  • ' is entered as &apos;

  • " is entered as &quot;

For valid values and example files, please refer to the value reference guide and the example files.