tizen 2.3.1 release
[external/gupnp.git] / doc / device-description.rnc
1 # Relax NG schema for UPnP Device Description files.  See section 2.1 of UPnP
2 # Device Architecture 1.0 for the canonical reference.
3
4 default namespace = "urn:schemas-upnp-org:device-1-0"
5
6 start = root
7
8 root = element root {
9    element specVersion {
10       element major { text } &
11       element minor { text }
12    } &
13    
14    element URLBase { text }? &
15    
16    device
17 }
18
19 device = element device {
20    element deviceType { text } &
21    element friendlyName { text } &
22    element manufacturer { text } &
23    element manufacturerURL { text }? &
24    element modelDescription { text }? &
25    element modelName { text } &
26    element modelNumber { text }? &
27    element modelURL { text }? &
28    element serialNumber { text }? &
29    element UDN { text } &
30    element UPC { text }? &
31    
32    element iconList {
33       element icon {
34          element mimetype { text } &
35          element width { text } &
36          element height { text } &
37          element depth { text } &
38          element url { text }
39       }+
40    }? &
41    
42    element serviceList {
43       element service {
44          element serviceType { text } &
45          element serviceId { text } &
46          element SCPDURL { text } &
47          element controlURL { text } &
48          element eventSubURL { text }
49       }+
50    }? &
51    
52    element deviceList {
53       device+
54    }? &
55    
56    element presentationURL { text }?
57 }+