![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: Inheritance in XML Schema? [Thread Next] Re: Inheritance in XML Schema?To: NULL Date: 3/3/2005 4:51:00 PM I'm having exactly the same problem. I've been looking at the documentation for complexContent and complexType but haven't figured out how to get the XML editor to allow me to enter the inherited elements. Its kind of amusing since I have a key constraint that requires the field, so I get one error that its missing, then if I add it I get another error that its present. Kewl. Peter "Keith Hill" wrote: > That works great except that the VS.NET XML editor thinks that the derived > type shouldn't have a Desc or Name or Addr. Does the version of XML that > VS.NET 2003 uses not recognize extended element definitions? > > -- > Keith > > "Zafar Abbas [MSFT]" <zafara@m...> wrote in message > news:%23LaRL3wDFHA.3824@T...... > > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" > > > <xs:element name="Elem1" type="base"/> > > <xs:element name="Elem2" type="derived"/> > > > > <xs:complexType name="base"> > > <xs:sequence> > > <xs:element name="Desc" type="xs:string"/> > > <xs:element name="Name" type="xs:string"/> > > <xs:element name="Addr" type="xs:string"/> > > </xs:sequence> > > </xs:complexType> > > > > <xs:complexType name="derived"> > > <xs:complexContent> > > <xs:extension base="base"> > > <xs:sequence> > > <xs:element name="SSN" type="xs:string"/> > > </xs:sequence> > > </xs:extension> > > </xs:complexContent> > > </xs:complexType> > > </xs:schema> > > > | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
