Altova XMLSpy 2024 Enterprise Edition

Superseded by AuthenticView.AsXMLString

 

AuthenticView now supports the property AsXMLString that can be used to directly access and replace the document content as an XMLString.

 

// ----- javascript sample -----

// instead of:

// Application.ActiveDocument.DocEditView.LoadXML (strDocAsXMLString);

// use now:

try

   { Application.ActiveDocument.AuthenticView.AsXMLString = strDocAsXMLString; }

catch (err)

   { MsgBox ("Error: invalid XML string"); }

 

 

Declaration: LoadXML (xmlString as String)

 

Description

Loads the current XML document with the XML string applied. The new content is displayed immediately.

The xmlString parameter must begin with the XML declaration, e.g.,

objPlugIn.LoadXML("<?xml version='1.0' encoding='UTF-8'?><root></root>");

 

 

 

© 2017-2023 Altova GmbH