Pages: 1
Print
Author Topic: Documents.OpenString [boolTemplate] causes error  (Read 520 times)
KdG
Member

Posts: 19


WWW
« on: January 10, 2018, 05:11:32 AM »

I noticed that since XMetaL Author Essential 12.0.0.077 the OpenString function hangs when you add the [boolTemplate]
So Documents.OpenString(doc,1,"test.xml",false); causes no response
While Documents.OpenString(doc,1,"test.xml"); works fine.

Is this a general thing or just someting with my installation?

_________________________
Steps to reproduce: Copy-paste the example from the Programers Guide (below) into XMetaL:

// XMetaL Script Language JSCRIPT:
var xmlDec = '<?xml version="1.0"?>';
var docType = '<!DOCTYPE Article SYSTEM "journalist.dtd">';
var contents1 = "<Article><Title>New Document</Title>";
var contents2 = "<Para>Contents</Para></Article>";
var doc = xmlDec + docType + contents1 + contents2;
// Open the document in Tags On view
Documents.OpenString(doc,1,"test.xml",false);
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 2579



WWW
« Reply #1 on: January 11, 2018, 02:40:27 PM »

It does appear to be functioning oddly. I'll let the development team know.
Logged
Pages: 1
Print
Jump to: