Is it possible to declare an attribute on a complex type, which will be inherited from every element declared inside this complex type?
I have the use case, that I need to annotate every element in an xml, if it has changed or not(@mutated={true|false}). The only solution I see, is to add this attribute to every element, what is very creepy.
Ok, its not possible you need to extend every type with this attribute and make a new type.
Here is my definition for a simple and a complex type:
Extend simple type:
Extend complex type:
Here some good resources: