Project

General

Profile

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

Eric Hou, 06/24/2010 04:06 PM

1 1 Amber Herold
h1. Edit an existing application as an xml file
2
3
Application editor behaves well enough that it is not necessary to edit xml files. However, if you want to, here is how.
4
5 3 Eric Hou
#  Leginon Main Menu/Application/Export> Select the desired application from the pull-down menu.
6
 
7
#  Export and save as xml file (with .xml extension on LINUX). The file will be saved to your current directory.
8
 
9
#  Edit the xml file in any text editor.
10
 
11 1 Amber Herold
Search for the name of the node class that you want to replace and make the changes.
12 3 Eric Hou
 
13 1 Amber Herold
The following section of the file controls the name of the application and version number
14 3 Eric Hou
<pre>
15 1 Amber Herold
<!-- ApplicationData -->
16
17
<sqltable name="ApplicationData">
18
19
<field name="DEF_id" >264</field>
20
21
<field name="version" >6</field>
22
23
<field name="DEF_timestamp" >20041209145648</field>
24
25
<field name="name" >MSI-raster (1.0)</field> </sqltable>
26 3 Eric Hou
</pre>
27 1 Amber Herold
Change the application name in the "name" field and change the "version" field to 0 to later import as a new application
28 3 Eric Hou
&nbsp;
29 1 Amber Herold
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.
30 3 Eric Hou
&nbsp;
31
#  Leginon Main Menu/Application/Import> Load the changed application xml file.
32 2 Amber Herold
33
34
35
36
______
37
38
[[Reload and Edit an existing application|< Reload and Edit an existing application]] | [[Create Leginon "Simple Application"|Create Leginon "Simple Application" >]]
39
40
______