TGML references
TAC Graphics Markup Language (TGML) is a declarative XML-based language for dynamic 2D graphics.
TGML is inspired by the XML based Scalable Vector Graphics (SVG) which is an open standard for 2D graphics.
TGML specifies a hierarchy of runtime objects with a set of properties and logic. Each markup element (XML element) represents a TGML object which can be edited, or configured, in the Graphics Editor. However, not all of the objects are graphical (visible). Several objects are used to add a specific behavior to a graphical object, such as enabling dynamic update of attributes, transformations and gradients.
The TGML object model is based on the W3C Document Object Model (DOM). The TGML graphics elements are accessible for applications through the exposed TGML DOM interfaces.
TGML version
The TGML version is specified in an XML processing instruction:
<?xml version="1.0"?>
<?TGML Version="1.2"?>
<TGML Width="800" Height="600" Stretch="Uniform" Background="#FFFFFF">
...
</TGML>
Namespaces
The TGML graphics elements specified in this specification belong to the default XML namespace, TGML.
TGML allows inclusion of elements from foreign namespaces anywhere with the TGML content. In general, the TGML loader will include the unknown (foreign) elements in the DOM, but will otherwise ignore the unknown elements.
For more information, see the following sections: