XML Scripting Language
- Last UpdatedApr 24, 2024
- 1 minute read
XML-based scripting is the foundation of every XR project. It's a proprietary language based on XML syntax.
The chain of inclusions for all XR projects starts from an XML file, and files of any type (graphic contexts, configurations, XRS scripts) can be included only from XML scripts/graphic contexts using the include statement.
XML scripting language is particularly suitable for nodes definition, parse time switches, and event-based programming through event routing.
Since business logic very often needs blocks of imperative programming, the XML scripting language also offers a way to implement imperative programming logic through Command and Coroutine node definitions.
The combination of XML reserved characters and XML Script reserved characters can cause issues when dealing with string operations and data received from external sources, such as models metadata. In cases where string manipulation is involved, it is advisable to use XRS Scripting Language instead.
XML script is rich in features and capabilities and is fully sandboxed by the XR Framework. The execution context is within the running application and access to any resource is always mediated by the XR Framework runtime.