Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Inheritance in XML Schema?

From: Peter W@-----------.---------.---
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>
> 
> 
> 


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent