Home › Forums › General XMetaL Discussion › How to prevent changing absolute DTD-path to relative path when saving – activeX › Reply To: How to prevent changing absolute DTD-path to relative path when saving – activeX
Reply to: How to prevent changing absolute DTD-path to relative path when saving – activeXMay 5, 2010 at 9:00 pm
There is currently no way to set the value for arbitrary INI variables supported by XMetaL Author inside XMAX.
In some cases there are properties and APIs specifically redesigned for use with XMAX that allow you to enable equivalent features but in this case there isn't one. We think it would be nice to provide a feature that would pass INI variable values into XMAX (those that can be supported by the product) but that work is not scheduled.
In your current situation you may provide an alternative way to save the XML document by taking advantage of the ActiveDocument.Xml API, altering the path as needed (and if necessary) using string manipulation of some kind (will depend on the language) and writing that string to a file. This will be harder than using ActiveDocument.Save() of course, but it is currently the only possible option I can think of.
The following properties may prove useful in solving your problem: