About the repository.xml File

The repository.xml file defines the repository. You can edit this file using an external application, such as NotePad, or by using SAS Studio.
Note: In the repository.xml file, any special characters that are part of a name must be represented by an escape character. If any of the names in the XML file contain a special character, the XML parser fails. For example, if you use the ampersand sign (&), the XML parser fails. Instead, you need to use &.
In the My Sample Repository, open simple/repository.xml in the SAS Studio workspace. This is the repository.xml file for the Simple Repository. You should see this code:
<?xml version="1.0" encoding="UTF-8"?>

1<Repository label="Example SAS Studio Repository" version="1.0">

   2<Tasks>
      <Category label="Example Tasks">
         <Location uri="./data/tasks.xml" />
      </Category>
   </Tasks>

   3<Snippets>
      <Category label="Example Snippets">
         <Location uri="./sgplot/snippets.xml" />
      </Category>
   </Snippets>

</Repository>
1 The repository.xml file starts with the Repository element, which contains the label and version attributes. These attributes are required.
2 Use the Tasks element to group categories of tasks. You must have at least one category. The category appears under the name of the repository in the Tasks and Utilities section of the navigation pane. Specify the name of the category by using the label parameter.
Each Category element must contain a Location element. You specify the location of the tasks.xml file (which defines the tasks in that category) using the uri parameter. This path can be relative or absolute.
3 Use the Snippets element to group categories of snippets. You must have at least one category. The category appears under the name of the repository in the Snippets section of the navigation pane. Specify the name of the category by using the label parameter.
Each Category element must contain one Location element. You specify the location of the snippets.xml file (which defines the tasks in that category) using the uri parameter. This path can be relative or absolute.