J
Jason Cavett
I'm attempting to create a schema where I have an abstract model from
which all other nodes "extend" the model (so I don't need to retype
the same information repeatedly). Something like this...
<xs:complexType name="DataModel" abstract="true">
<xs:complexContent>
<xs:extension base="DataModel">
<xs:sequence>
<xs:element name="data">
<xs:complexType>
<xs:sequence>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="children">
<xs:complexType>
<xs:sequence>
<xs:element name="Notes" type="NotesModel"
minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
However, what I do not understand is - when I create the other
elements that rely on DataModel...how do I continue to expand the
existing nodes. (For example, I want to add additional elements to
the "children" node.)
Thanks
which all other nodes "extend" the model (so I don't need to retype
the same information repeatedly). Something like this...
<xs:complexType name="DataModel" abstract="true">
<xs:complexContent>
<xs:extension base="DataModel">
<xs:sequence>
<xs:element name="data">
<xs:complexType>
<xs:sequence>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="children">
<xs:complexType>
<xs:sequence>
<xs:element name="Notes" type="NotesModel"
minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
However, what I do not understand is - when I create the other
elements that rely on DataModel...how do I continue to expand the
existing nodes. (For example, I want to add additional elements to
the "children" node.)
Thanks