Relax NG schema for XML configuration v_0
authorFrantišek Kučera <franta-hg@frantovo.cz>
Thu, 02 Jan 2014 19:59:33 +0100
branchv_0
changeset 113575a8c6b91ad
parent 112 de0bcc3859cf
child 114 125e3373d6e2
Relax NG schema for XML configuration
xml/config.rnc
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/xml/config.rnc	Thu Jan 02 19:59:33 2014 +0100
     1.3 @@ -0,0 +1,27 @@
     1.4 +default namespace = "https://sql-dk.globalcode.info/xmlns/configuration"
     1.5 +
     1.6 +start =
     1.7 +	element configuration {
     1.8 +		
     1.9 +		element database {
    1.10 +			element name { text },
    1.11 +			element url { text },
    1.12 +			element userName { text }?,
    1.13 +			element password { text }?,
    1.14 +			element property {
    1.15 +				attribute name { text },
    1.16 +				text
    1.17 +			}*
    1.18 +		}*,
    1.19 +		
    1.20 +		element defaultFormatter { text }?,
    1.21 +		
    1.22 +		element formatter {
    1.23 +			element name { text },
    1.24 +			element class { text },
    1.25 +			element property {
    1.26 +				attribute name { text },
    1.27 +				text
    1.28 +			}*
    1.29 +		}*
    1.30 +	}