Altova XMLSpy 2022 Enterprise Edition

Superseded by AuthenticView.AsXMLString

 

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

 

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

// instead of:

// var strDocAsXMLString = Application.ActiveDocument.DocEditView.SaveXML();

// use now:

try

{

   var strDocAsXMLString = Application.ActiveDocument.AuthenticView.AsXMLString;

   ... // do something here

}

catch (err)

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

 

Declaration: SaveXML as String

 

Return Value

XML structure as string

 

Description

Saves the current XML data to a string that is returned to the caller.

 

 

 

© 2016-2022 Altova GmbH