1 2 | ||
Editor: damberger
Time: 2009/11/10 12:26:35 GMT+1 |
||
Note: updated tracker links |
changed: - * http://www.cara.ethz.ch/Tracker/0624 - - * http://www.cara.ethz.ch/Tracker/0700 * http://tracker.cara.nmr.ch/0624 * http://tracker.cara.nmr.ch/0700
The repository resides in a single XML file with a .cara extension. It can be edited with a common text editor or a special XML-aware editor like Microsoft Excel / Access or XML-Spy.
Note that in XML like in HMTL information is structured using tags which indicate the type of information. Tags usually bracket the information in question. For example: <something > information </something>. In some cases a compact version <something /> is used. Any tag can be equipped with attributes of the form attribute=value
. Here is a typical block of XML from a CARA repository:
<spectrum-type name=3D N15-NOESY
> <dim name=H
atom=H
> <label tag=HN
off=0
final=1
/> </dim> <dim name=H
atom=H
/> <dim name=N
atom=N
> <label tag=N
off=0
final=1
/> </dim> <step text=N
atom=N
dim=2
hops=0
rep=0
/> <step text=H
atom=H
dim=0
hops=1
rep=0
/> <step text=H
atom=H
dim=1
hops=-1
rep=0
/> </spectrum-type>
Note that all elements are either bracketed with <xxx> and </xxx> or are of the form <xxx /> . The above block is the definition of an NMR experiment.
Be aware that CARA checks a repository when it is opened. If an inconsistency is found, an error message will show you the line number where the problem occurred. Sometimes you can fix a corrupted repository by completing the XML brackets or copy-pasting the missing part from another intact repository. See FAQ and the following issues from IssueTracker for examples:
EditingRepositories: some examples of how to edit repositories
NEXT: ImportingTemplate
Return to GettingStarted
Return to FrontPage