Thanks for your input. I was not clear, but I'm a bit new to this:
In illustrator, you have the variables palette, where variables are defined, and then linked to make text-elements "dynamic".
We used to parse this as a simple "property" of the textframe, my_text.contentvariable,
import com.adobe.illustrator.Variable;
import com.adobe.illustrator.VariableKind;
var variable:Variable = textFrame.contentVariable as Variable;
and calling getType(variable.kind) and variable.name and the like...
We basically need to reconstruct the "save variable library" XML....