AuthenticView.UpdateXMLInstanceEntities

www.altova.com このトピックを印刷 前のページ 1つ上のレベル 次のページ

ホーム >  プログラマーの レファレンス > Application API > Interfaces > AuthenticView >

AuthenticView.UpdateXMLInstanceEntities

See also

 

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

 }

}


(C) 2019 Altova GmbH