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