Altova StyleVision 2025 Enterprise Edition

Method: UpdateXMLInstanceEntities()

 

Description

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.

 

Errors

The method never returns an error.

 

Example

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

// Scripting environment - JavaScript

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

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

{

 var objDocType;

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

 

 if(objDocType)

 {

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

         objEntity.Name = "child";

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

         objDocType.AppendChild(objEntity);

         

         Application.ActiveDocument.AuthenticView.UpdateXMLInstanceEntities();

 }

}

© 2018-2024 Altova GmbH