Bug 1441: Implement XML Stream Reader to Normalized Node Writer
[yangtools.git] / yang / yang-data-codec-xml / src / test / resources / foo.yang
1 module foo {
2     namespace "foo-namespace";
3     prefix "f";
4
5     container parent-container {
6
7         container leaf-container {
8
9             leaf int32-leaf {
10                 type int32;
11             }
12
13             leaf decimal64-leaf {
14                 type decimal64 {
15                     fraction-digits 2;
16                 }
17             }
18
19             leaf string-leaf {
20                 type string;
21             }
22
23             leaf leafref-leaf {
24                 type leafref {
25                     path "../string-leaf";
26                 }
27             }
28
29             leaf empty-leaf {
30                 type empty;
31             }
32
33             leaf boolean-leaf {
34                 type boolean;
35             }
36
37             leaf enum-leaf {
38                 type enumeration {
39                     enum zero;
40                     enum one;
41                     enum five {
42                         value 5;
43                     }
44                 }
45             }
46         }
47
48         container anyxml-container {
49             anyxml my-anyxml;
50         }
51     }
52
53
54 }