E
Elhanan
hi..
can i expose this schema and be sure that consumers like dotnet would
be able to do xml binding even though i have inheritence in this xsd?
is this interopble?
i have the following schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://example.org/"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc ="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="1.0"
<xsd:annotation>
<xsd:appinfo>
<jaxb:globalBindings>
<xjc:typeSubstitution type="complex"/>
</jaxb:globalBindings>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType name="BaseItem" abstract="true" >
<xsd:attribute name="Id" type="xsd:int"/>
<xsd:attribute name="Price" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="Book">
<xsd:complexContent>
<xsd:extension base="BaseItem">
<xsd:attribute name="Name" type="xsd:string" />
<xsd:attribute name="year" type="xsd:int" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="TV">
<xsd:complexContent>
<xsd:extension base="BaseItem">
<xsd:attribute name="Brand" type="xsd:string" />
<xsd:attribute name="Type" type="xsd:string" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="Store">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Items" type="BaseItem" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
can i expose this schema and be sure that consumers like dotnet would
be able to do xml binding even though i have inheritence in this xsd?
is this interopble?
i have the following schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://example.org/"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc ="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="1.0"
<xsd:annotation>
<xsd:appinfo>
<jaxb:globalBindings>
<xjc:typeSubstitution type="complex"/>
</jaxb:globalBindings>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType name="BaseItem" abstract="true" >
<xsd:attribute name="Id" type="xsd:int"/>
<xsd:attribute name="Price" type="xsd:int"/>
</xsd:complexType>
<xsd:complexType name="Book">
<xsd:complexContent>
<xsd:extension base="BaseItem">
<xsd:attribute name="Name" type="xsd:string" />
<xsd:attribute name="year" type="xsd:int" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="TV">
<xsd:complexContent>
<xsd:extension base="BaseItem">
<xsd:attribute name="Brand" type="xsd:string" />
<xsd:attribute name="Type" type="xsd:string" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:element name="Store">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Items" type="BaseItem" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>