Git init
[pkgs/e/elektra.git] / examples / hierarchy.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2
3
4 <!--
5         This is the new hierarchical XML style that supports nested <key>s and
6         two new attributes: parent and basename, being
7         "parent" + "/" + "basename" = "name".
8         
9         The ksFromXML() and ksFromXMLfile() supports this format since version 0.5.
10 -->
11
12
13 <!--
14         Subversion stuff.
15         
16         $Id$
17         
18  -->
19
20
21 <keyset xmlns="http://elektra.sourceforge.net"
22                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
23                 xsi:schemaLocation="http://elektra.sourceforge.net elektra.xsd"
24
25                 parent="user/tmp">
26
27         <!-- The wrapping keyset is not really necessary. The key element
28                  can be a root key -->
29         
30         <key basename="dir1"> <!-- complete name is user/tmp/dir1 -->
31                 <key basename="xyz"> <!-- complete name is user/tmp/dir1/xyz -->
32                         <value>abc</value>
33                         <comment>comment1</comment>
34                 </key>
35                 <key basename="abc"> <!-- complete name is user/tmp/dir1/abc -->
36                         <value>xyz</value>
37                         <comment>comment1</comment>
38                 </key>
39                 <key basename="dir2"> <!-- complete name is user/tmp/dir1/dir2 -->
40                         <key basename="def"> <!-- complete name is user/tmp/dir1/dir2/def -->
41                                 <value>cecece</value>
42                         </key>
43                         <key basename="uvw"> <!-- complete name is user/tmp/dir1/dir2/uvw -->
44                                 <value>tatata</value>
45                         </key>
46                 </key>
47         </key>
48 </keyset>
49