Project

General

Profile

Edit an existing application as an xml file » History » Revision 3

Revision 2 (Amber Herold, 04/27/2010 02:58 PM) → Revision 3/7 (Eric Hou, 06/24/2010 04:06 PM)

h1. Edit an existing application as an xml file 

 


 Application editor behaves well enough that it is not necessary to edit xml files. However, if you want to, here is how. 

 # 


 *    Leginon Main Menu/Application/Export> Select the desired application from the pull-down menu. 
   
 # 


 *    Export and save as xml file (with .xml extension on LINUX). The file will be saved to your current directory. 
   
 # 


 *    Edit the xml file in any text editor. 
   
 


 Search for the name of the node class that you want to replace and make the changes. 
   
 


 The following section of the file controls the name of the application and version number 
 <pre> 
 

 <blockquote> 

 <!-- ApplicationData --> 

 


 <sqltable name="ApplicationData"> 

 


 <field name="DEF_id" >264</field> 

 


 <field name="version" >6</field> 

 


 <field name="DEF_timestamp" >20041209145648</field> 

 


 <field name="name" >MSI-raster (1.0)</field> </sqltable> 
 </pre> 
 

 </blockquote> 

 Change the application name in the "name" field and change the "version" field to 0 to later import as a new application 
 &nbsp; 
 


 Increase the version number to an unused version number if the edited application is to be imported as a newer version of an existing application. 
 &nbsp; 
 # 


 *    Leginon Main Menu/Application/Import> Load the changed application xml file. 




 ______ 

 [[Reload and Edit an existing application|< Reload and Edit an existing application]] | [[Create Leginon "Simple Application"|Create Leginon "Simple Application" >]] 

 ______