Altova XMLSpy 2024 Enterprise Edition

AuthenticView.UpdateXMLInstanceEntities

Home Prev Top Next

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();

 }

}

© 2017-2023 Altova GmbH