Please enable JavaScript to view this site.

Altova StyleVision 2020 Professional Edition

Method: UpdateXMLInstanceEntities()



Updates the internal representation of the declared entities, and refills the entry helper. In addition, the validator is reloaded, allowing the XML file to validate correctly. Please note that this may also cause schema files to be reloaded.



The method never returns an error.



// -----------------------------------------

// Scripting environment - JavaScript

// -----------------------------------------

if(Application.ActiveDocument && (Application.ActiveDocument.CurrentViewMode == 4))


 var objDocType;

 objDocType = Application.ActiveDocument.DocEditView.XMLRoot.GetFirstChild(10);




         var objEntity = Application.ActiveDocument.CreateChild(14);

         objEntity.Name = "child";

         objEntity.TextValue = "SYSTEM \"child.xml\"";






© 2020 Altova GmbH