XSD: Adding attributes to strongly-typed “simple” elements

后端 未结 3 2018
Happy的楠姐
Happy的楠姐 2020-12-30 04:50

Is there some sensible way to have elements with strongly-typed simple-types and also attributes?

Okay, I have an XSD schema which has a million (er, hundred) elemen

3条回答
  •  攒了一身酷
    2020-12-30 05:24

    The purpose of an XSD is to describe your data. The purpose of an XSD's type attribute is to describe or define an element. What you want to do is to change the element's definition. If you're changing the description change the type. What you're trying to do is like putting wheels on a thought. "But I want wheels on my thought!" "Sorry, no can do."

提交回复
热议问题