The XML file should start with the XML declaration
Make sure, that your XML file starts with a proper XML declaration, i.e. <?xml version="1.0" encoding="UTF-8" ?>
The XML file has to have only one root element
Remember, that your XML file has to consist of one root element, that wraps all other elements.
Keep proper construction of the tags
Always keep in mind, how the construction of a start tag <tag> and an end tag </tag> should look like. You can also use an empty element tag, which looks like this - <tag />.
There must not be anything before or after the root element
You should avoid such syntax:
There are some characters, that are not supported by the XML standard. To insert them correctly, you have to use a special syntax in place of the desired character. The table below shows few popular examples:
|Character||How to insert it|
(write it in place of a character)
|The character between tags (<tag>here</tag>)|
|The character inside the value of an element|
(<tag attribute="here" />)
The value of an attribute has to be in quotes or apostrophes
Remember that the value of an attribute should always be in quotes or apostrophes, even if it's a number, i.e. <tag number="1" />.
A problem with an XML file analyzing as though it was empty
Such a situation may happen if you want to translate the values of the attributes in your file rather than content between a start and end tag. Changing the ITS configuration should solve such an issue. In order to commit such a change, contact our XTM Support Team.
Make sure, that your file is compatible with the XML standard
The easiest way to do it is to open your file with a browser like Google Chrome or Firefox. If there are some mistakes, for example, your end tag looks like this <tag/> instead of </tag>, such error message should appear:
After fixing the file, it looks like this: