<< Click to Display Table of Contents >> XEDIT |
The XEDIT statement uses the open-source XML Notepad xml editor to open up the designated file. The statement is practical for editing plot files (.gpt), or table files (.gtb). In general, a xml editor is much easier to use for editing xml files than a text editor.
Tip: use 'View' --> 'Expand All' to unfold all XML nodes for better overview. Use Ctrl+D to duplicate a xml node (including its children nodes). The nodes are easy to copy, delete and move areound in XML Notepad.
xedit filename ;
filename |
Filenames may contain an absolute path like c:\projects\gekko\bank.gbk, or a relative path \gekko\bank.gbk. Filenames containing blanks and special characters should be put inside quotes. Regarding reading of files, files in libraries can be referred to with colon (for instance lib1:bank.gbk), and "zip paths" are allowed too (for instance c:\projects\data.zip\bank.gbk). See more on filenames here. The extension .gpt is automatically added, if it is missing. If the filename is set to '*', you will be asked to choose the file in Windows Explorer. |
You may use this to open up the file p.gpt from the working folder:
xedit p; |
The .gpt extension is automatically inserted. You may select .gpt files like this:
xedit *; |
This will open up a file dialog with .gpt files to choose from (you can choose other extensions, too).
To edit a table file called t1.gtb, you may use:
xedit t1.gtb; |