Please enable JavaScript to view this site.

Altova Authentic 2022 Desktop

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\"";






© 2016-2022 Altova GmbH