T
TIANA
Hi guys
Unfortunately I’m a newbee to xml and xsd Schemes. I’m
having the following xml file:
<config >
<section name="A">
<entry key="k1" val="aaa" />
<!-- (range for 'val' = aaa|bbb|ccc-->
<entry key="k2" val ="true" />
<!-- (range for 'val' = true|false) -->
</section>
<section name="B">
<entry key="k3" val ="3" />
<!-- (range for 'val' = 1...10) -->
</section>
</ config >
Now, I'd like to create an xsd file for it.
I have no idea how to define the range for the attribute 'val'
depending on the values for the 'name' - attribute of the element
'ection' and the 'key' attribute in 'entry'
I think I have to use xsd:restriction /enumeration
But how do I express those dependencies????
I hope, I did not confuse you guys too much.
I'd be glad for any kind of help or hint how to start.
TIA
Unfortunately I’m a newbee to xml and xsd Schemes. I’m
having the following xml file:
<config >
<section name="A">
<entry key="k1" val="aaa" />
<!-- (range for 'val' = aaa|bbb|ccc-->
<entry key="k2" val ="true" />
<!-- (range for 'val' = true|false) -->
</section>
<section name="B">
<entry key="k3" val ="3" />
<!-- (range for 'val' = 1...10) -->
</section>
</ config >
Now, I'd like to create an xsd file for it.
I have no idea how to define the range for the attribute 'val'
depending on the values for the 'name' - attribute of the element
'ection' and the 'key' attribute in 'entry'
I think I have to use xsd:restriction /enumeration
But how do I express those dependencies????
I hope, I did not confuse you guys too much.
I'd be glad for any kind of help or hint how to start.
TIA