Altova XMLSpy 2025 Enterprise Edition

The example HTML page also includes a custom toolbar (intended as a replica of the XMLSpy menu). The custom toolbar consists of buttons with images of XMLSpy commands, for example:

 

<button id="btnWellFormed" title="Check Well-formedness" onclick="BtnDoCommand(34049)">
  <img src="..\Images\IDC_CHECK_WELL_FORM.gif" width="16" height="16" />
</button>
<button id="btnValidate" title="Validate" onclick="BtnDoCommand(34174)">
  <img src="..\Images\IDC_VALIDATE.gif" width="16" height="16" />
</button>

 

The names of button images correspond to the command ID numbers, see Command Reference. On clicking the button, the corresponding command ID is sent to the main control and executed:

 

// perform any command specified by cmdID.
// command routing includes application, active document and view.
function BtnDoCommand(cmdID)
{
  objXMLSpyX.Exec( cmdID );
  msgtext.innerText = "Command " + cmdID + " performed.";
}

 

© 2018-2024 Altova GmbH