summaryrefslogtreecommitdiff
path: root/data/examples/interface_definition_sample.xml
blob: fe22e17298954aa80ea21451fc5ea6b92d8d6d68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0"?>
<interfaceDefinition extends="system">
  <node name="login">
    <children>
      <tagNode name="user">
        <properties>
          <helpString>User name</helpString>
          <constraint>
            <regex>[a-z][a-zA-Z0-9]+</regex>
            <errorMessage>User name must start with a letter and consist of letters and digits</errorMessage>
          </constraint>
        </properties>
        <children>
          <leafNode name="full-name">
            <properties>
              <helpString>User full name</helpString>
            </properties>
          </leafNode>
        </children>
      </tagNode>
      <leafNode name="hostname">
        <properties>
          <helpString>System hostname</helpString>
          <valueHelpString>text</valueHelpString>
        </properties>
      </leafNode>
    </children>
  </node>
</interfaceDefinition>