home contents changes options help

The CARA repository

Template repositories

Tutorials to help you work with repositories:

Manual editing of the repository (advanced users)

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

subtopics: