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

后端 未结 3 2024
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:20

    [quote]could do it manually, and horribly, by adding all such attributes to the XSD when I generate it, something like this:[/quote]

    I'm afraid this is your only "proper", XSD-schema compatible way to do it.

    XSD can be convoluted to author at times - but it helps keeping things safe :-)

    Marc

提交回复
热议问题