Altova XMLSpy 2025 Professional Edition

 

 

 

Description

AuthenticView and its child objects AuthenticRange and AuthenticDataTransfer provide you with an interface for Authentic View, which allow easy and consistent modification of document contents. These interfaces replace the following interfaces which are marked now as obsolete:

 

OldAuthenticView (old name was DocEditView)

AuthenticSelection (old name was DocEditSelection, superseded by AuthenticRange)

AuthenticEvent (old name was DocEditEvent)

 

AuthenticView gives you easy access to specific features such as printing, the multi-level undo buffer, and the current cursor selection, or position.

 

AuthenticView uses objects of type AuthenticRange to make navigation inside the document straight-forward, and to allow for the flexible selection of logical text elements. Use the properties DocumentBegin, DocumentEnd, or WholeDocument for simple selections, while using the Goto method for more complex selections. To navigate relative to a given document range, see the methods and properties of the AuthenticRange object.

 

Examples

' ---------------------------------------

' XMLSpy scripting environment - VBScript

' secure access to authentic view object

' ---------------------------------------

Dim objDocument

Set objDocument = Application.ActiveDocument

If (Not objDocument Is Nothing) Then

 ' we have an active document, now check for view mode

 If (objDocument.CurrentViewMode <> spyViewAuthentic) Then

         If (Not objDocument.SwitchViewMode (spyViewAuthentic)) Then

                 MsgBox "Active document does not support authentic view mode"

         Else

                 ' now it is safe to access the authentic view object

                 Dim objAuthenticView

                 Set objAuthenticView = objDocument.AuthenticView

                 ' now use the authentic view object

                 

         End If

 End If

Else

 MsgBox "No document is open"

End If

 

© 2018-2024 Altova GmbH