Altova XMLSpy 2025 Professional Edition

Superseded by AuthenticRange.SelectPrevious

 

AuthenticRange now supports a wide range of element navigation methods based on document elements like characters, words, tags and many more. Selecting the text passage that represents the content of the previous XML element is just one of them.

 

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

// instead of:

// var objCurrXMLData = ...

// var objXMLData = Application.ActiveDocument.DocEditView.GetPreviousVisible(objCurrXMLData);

// Application.ActiveDocument.DocEditView.SelectionSet (objXMLData, 0, objXMLData, -1);

// use now:

var objRange = ...

try

   { objRange.SelectPrevious (spyAuthenticTag).Select(); }

catch (err)

{

  if ((err.number & 0xffff) == 2004)

       MsgBox ("begin of document reached");

  else

      throw (err);

}

 

Declaration: GetPreviousVisible (pElement as XMLData) as XMLData

 

Description

The method gets the previous visible XML element in the document.

 

 

 

© 2018-2024 Altova GmbH