All rules governing well-formed XML apply to the scripting of Interactive XML applications. These won’t be detailed here, but following are some useful tips relating to tag structure:
1. Every opened tag must have a corresponding closing tag. For example:
<a_tag>some_text</a_tag>
or
<a_tag name="some_text"/>
2. Tags must be opened and closed at the same level. For example:
Incorect:
<tag1> <tag2>some_text</tag1> </tag2>
Correct:
<tag1> <tag2>some_text</tag2> </tag1>
3. The correct hierarchy of tags as described in this documentation must be respected. For example:
Incorrect:
<media> <medias> <file>a_file.mp4</file> </medias> </media>
Correct:
<medias> <media> <file>a_file.mp4</file> </media> </medias>
This is referred to in the Interactive XML Glossary later in this document as the parent-child relationship.
Note that you will NOT get an XML error when you debug the above incorrect code in a browser. However, the file specified in <file> will never be called.