Hello dear! Please help to make a scheme for xml-code:
<Подраздел имя="винты"> <Свойство тип="Число" имя="Диаметр" обозначение="d" единица="мм" /> <Свойство тип="Число" имя="Шаг" обозначение="p" единица="мм" /> <Свойство тип="Текст.Варианты" имя="Направление резьбы"> <Вариант>Правая</Вариант> <Вариант>Левая</Вариант> </Свойство> <Свойство тип="Да/Нет" имя="Полый?"/>Да</Свойство> </Подраздел> so that:
- for the property with type = "Number", the presence of child elements was excluded, and the attributes designation = "", units = "" were required.
- for the property type = "Text. Options" a minimum of 2 child <option> 'a was required, and the presence of attributes notation = "", units = "" was prohibited.
- for the property type = "Yes / No" is similar to paragraph 2 + the closing tag is mandatory, the content is limited to two options "yes" and "no".
In general terms, it is required to create a scheme in which the "Property" element changes attributes and child elements depending on the value type = "". And is it possible?