Activer JavaScript pour consulter ce site.

Altova XMLSpy 2021 Enterprise 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\"";






© 2015-2021 Altova GmbH