L001

A comment has been started with <!-- but has not been closed. Any comments must be closed with -->.
Error Example:

<!-- This comment does not close
<Body>
    <Label "Hi"/>
</Body>

Fix Example:

<!-- This comment does close -->
<Body>
    <Label "Hi"/>
</Body>

P001

An import statement has been found not at the top of a file. All import statements should be before any other code.
Error Example:

<Body>
    <Label "Hi"/>
</Body>

<Import from="Toga" import="Pack"/>

Fix Example:

<Import from="Toga" import="Pack"/>

<Body>
    <Label "Hi"/>
</Body>

P002

A tag non-self closing has been used in the TML code which is unknown to the language.
Error Example:

<ThisTagIsBad>
    <Label "hi"/>
</ThisTagIsBad>

Fix Example:

<Body>
    <Label "hi"/>
</Body>

P003

Somehow in lexing, a token has been passed to the parser that isn't recognised. It is highly unlikey that this error will be encountered. The primary purpose it was added is for development.

P004

This is an unclosed non self-closing tag. All non self-closing tags must be closed after their inner code.
Error Example:

<Body>
    <Box>
        <Label "hi"/>
</Body>

Fix Example:

<Body>
    <Box>
        <Label "hi"/>
    </Box>
</Body>

G001

A prefab has been used in the body without assigning a name. All instances of a prefab must have a name to distinguish it from other uses.
Error Example:

<Prefabs>
    <WideHi "Hi" type="Label" margin=5>
</Prefabs>

<Body>
    <WideHi/>
</Body>

Fix Example:

<Prefabs>
    <WideHi "Hi" type="Label" margin=5>
</Prefabs>

<Body>
    <WideHi name="instance1"/>
</Body>

M001

There is no <Body> tag containing the UI code. All TML UI code must be contained inside of a <Body> tag. Error Example:

<Label "Hi"/>

Fix Example:

<Body>
    <Label "Hi"/>
</Body>