diff options
author | Daniil Baturin <daniil@baturin.org> | 2015-04-16 04:56:38 +0600 |
---|---|---|
committer | Daniil Baturin <daniil@baturin.org> | 2015-04-16 04:56:38 +0600 |
commit | dd2fc4d0d4b675220a6d66d5b4f57c10bfa25793 (patch) | |
tree | 493ac8a585ce94eba207f50275eaca184d0a93ae /data/examples | |
parent | 2adde14d0f096a1b38f94a8673ad9aa13a1ef4bc (diff) | |
download | vyconf-dd2fc4d0d4b675220a6d66d5b4f57c10bfa25793.tar.gz vyconf-dd2fc4d0d4b675220a6d66d5b4f57c10bfa25793.zip |
Group node properties and children into their own tags.
Make order of elements unimportant.
Remove unused references.
Diffstat (limited to 'data/examples')
-rw-r--r-- | data/examples/interface_definition_sample.xml | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/data/examples/interface_definition_sample.xml b/data/examples/interface_definition_sample.xml index e77240b..fe22e17 100644 --- a/data/examples/interface_definition_sample.xml +++ b/data/examples/interface_definition_sample.xml @@ -1,15 +1,29 @@ <?xml version="1.0"?> <interfaceDefinition extends="system"> <node name="login"> - <tagNode name="user"> - <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> - <leafNode name="full-name"> - <helpString>User full name</helpString> + <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> - </tagNode> + </children> </node> </interfaceDefinition> |