Command Line

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  User Guide and Reference > Menu Commands >

Command Line

Certain XMLSpy actions can be carried out from the command line. These commands are listed below:

 

Open a file

Command: xmlspy.exe file.xml

Action: Opens the file, file.xml, in XMLSpy

 

Note:If an XML file has an SPS file already assigned to it, then the XML file is opened in Authentic View. Otherwise, the XML file is opened in Text View. If an SPS file is not assigned, one can be assigned with the /sps flag (see below).

 

Open multiple files

Command: xmlspy.exe file1.xml file2.xml

Action: Opens the files, file1.xml and file2.xml, in XMLSpy

 

Assign an SPS file to an XML file for Authentic View editing

Command: xmlspy.exe myxml.xml /sps mysps.sps

Action: Opens the file, myxml.xml in Authentic View with mysps.sps as its SPS file. The /sps flag specifies that the SPS file that follows is to be used with the XML file that precedes the /sps flag (for Authentic View editing).

 

Open a new XML template file via an SPS file

Command: xmlspy.exe mysps.sps

Action: Opens a new XML file in Authentic View. The display will be based on the SPS and the new XML file will have a skeletal structure based on the SPS schema. The name of the newly created XML file must be assigned when saving the XML file.

 

Open an SPS file as an XML document in Text View

Command: xmlspy.exe /raw mysps.sps

Action: Opens the file mysps.sps as an XML document in Text View. The /raw flag specifies that the SPS file that follows is to be edited as an XML file.

 


© 2019 Altova GmbH