Working with XML objects

Discussion created by Michael_Lowry on May 19, 2017
Latest reply on Feb 15, 2019 by Michael_Lowry

I’m trying to understand how best to store, read, and modify arbitrary XML in UC4 objects. I see a couple of ways of doing this:

  1. XML VARA objects
  2. Structured documentation tabs

1. XML VARA objects

There are a few scripting commands that can be used to work with XML VARA objects:


Using GET_VAR, one can retrieve either the whole XML content for a particular VARA key, or use an Xpath query to retrieve just part of the XML.


When using :PUT_VAR, one cannot write or modify just part of the XML. One must replace the whole thing or nothing.


Using PREP_PROCESS_VAR_XML, one can create a data sequence based on an XPath query.

2. Structured documentation tabs

The AE scripting language includes many functions for working with structured documentation tabs, including:

Using these scripting functions, one can easily manipulate individual parts of the XML.

The functions for working with structured documentation are quite flexible. Is there any way to get similarly fine-grained control over XML stored in XML VARA objects?