Hi!

I am generating typed dataset from a xsd schema but one of the "datatable"
named "field" does not generate code. Why?

xsd.exe /d /l:vb myschema.xsd

Thanks in advance!

You can find the schema here:
http://shoppa.com/schemas/mediablob.xsd

Or:



<?xml version="1.0" encoding="utf-8" ?>
<xs:schema xmlns:mstns="http://shoppa.com/mediablobSchema"
elementFormDefault="qualified"
targetNamespace="http://shoppa.com/mediablobSchema"
id="mediablob"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="mediablob">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="pictures">
<xs:annotation>
<xs:documentation>Pictures only needs to be defined in this list
when picture texts shall be updated, or if the picture shall be deleted from
the mediablob.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="picture">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="unbounded"
name="text">
<xs:annotation>
<xs:documentation>
Descriptions of the picture in a specified
language and for a chosen country.
At least one text must be defined unless the
picture is marked as deleted, in which case no texts must be defined.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="countryCode" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xsattern value="[a-z]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="languageCode" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xsattern value="[a-z]{2}-[A-Z]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="name" type="xs:string" />
<xs:attribute name="description" type="xs:string" />
<xs:attribute name="keywords" type="xs:string">
<xs:annotation>
<xs:documentation>List of keywords to define for
the picture. Keywords can later be used for assigning pictures instead of
using a uri.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="delete" type="xs:boolean"
use="optional">
<xs:annotation>
<xs:documentation>True when the picture text in
the selected language and for the selected country shall be
deleted.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="uri" type="xs:anyURI" use="optional">
<xs:annotation>
<xs:documentation>
Link to an existing image file.
The picture is only uploaded to the mediablob if the
hash code of the chosen file does not already exist, effectively preventing
duplicate pictures.
This attribute can not be used with Shoppa
WebServices.
The attributes uri and hashCode are mutually
exclusive!
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="hashCode" type="xs:string"
use="optional">
<xs:annotation>
<xs:documentation>
MD5 checksum of an existing picture in the mediablob.
The attributes uri and hashCode are mutually
exclusive!
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="delete" type="xs:boolean"
use="optional">
<xs:annotation>
<xs:documentation>
True when the chosen picture shall be deleted from
the mediablob.
This will remove all picture texts and links to
products as well!
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="products">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="product">
<xs:complexType>
<xs:all>
<xs:element minOccurs="0" maxOccurs="1" name="texts">
<xs:annotation>
<xs:documentation>Must not be defined if the product
is deleted.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="text">
<xs:annotation>
<xs:documentation>
Descriptions of the product in a specified
language and for a chosen country.
At least one text must be defined for a
product that does not already exist in the mediablob.
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0"
maxOccurs="unbounded" name="field">
<xs:annotation>
<xs:documentation>Optional product text
fields. Must not be defined if the product text is deleted.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="name" use="required">
<xs:annotation>
<xs:documentation>
Product text field identifier.
The name must conform to an
enumeration that changes over time.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="value"
type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Leave blank to
delete an existing field.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="countryCode" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xsattern value="[a-z]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="languageCode"
use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xsattern value="[a-z]{2}-[A-Z]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="brand">
<xs:annotation>
<xs:documentation>The product brand name.
Required for new products.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="productName">
<xs:annotation>
<xs:documentation>The product name.
Required for new products.</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="2" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="delete" type="xs:boolean"
use="optional">
<xs:annotation>
<xs:documentation>True when the chosen
product text shall be deleted from the mediablob.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="codes">
<xs:annotation>
<xs:documentation>Must not be defined if the product
is deleted.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="code">
<xs:annotation>
<xs:documentation>
List of additional product codes, other than
the main product identifier (id).
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="name" use="required"
type="mstnsroductIDEnumType">
<xs:annotation>
<xs:documentation>Product code
identifier.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="value" use="optional"
type="xs:string">
<xs:annotation>
<xs:documentation>Leave blank to delete an
existing code.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element minOccurs="0" maxOccurs="1" name="pictures">
<xs:annotation>
<xs:documentation>Must not be defined if the product
is deleted.</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="picture">
<xs:annotation>
<xs:documentation>
List of pictures to link to product text
fields in a specified language and for a chosen country.
The picture must either be defined by its
uri or a keyword of an existing picture.
The attributes uri and keyword are mutually
exclusive!
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:attribute name="countryCode" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xsattern value="[a-z]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="languageCode"
use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xsattern value="[a-z]{2}-[A-Z]{2}" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="fieldName"
type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Name of the product text
field that the picture shall be linked to.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="sortOrder" use="optional">
<xs:annotation>
<xs:documentation>
Sorting order to use when multiple
pictures have been linked to the same product text field.
The lower the value the higher the
priority.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="uri" type="xs:anyURI"
use="optional">
<xs:annotation>
<xs:documentation>
Link to an existing image file.
The picture is only uploaded to the
mediablob if the hash code of the chosen file does not already exist,
effectively preventing duplicate pictures.
This attribute can not be used with
Shoppa WebServices.
The attributes uri, hashCode and keyword
are mutually exclusive!
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="hashCode" type="xs:string"
use="optional">
<xs:annotation>
<xs:documentation>
MD5 checksum of an existing picture in
the mediablob.
The attributes uri, hashCode and keyword
are mutually exclusive!
</xs:documentation>
</xs:annotation>
</xs:attribute>
<!--<xs:attribute name="keyword"
type="xs:string" use="optional">
<xs:annotation>
<xs:documentation>Keyword to use for
identifying an existing picture in the mediablob.
The attributes uri, hashCode and keyword are mutually
exclusive!</xs:documentation>
</xs:annotation>
</xs:attribute>-->
<xs:attribute name="delete" type="xs:boolean"
use="optional">
<xs:annotation>
<xs:documentation>True when the chosen
picture shall be unlinked from the chosen product text
field.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
<xs:attribute name="id" use="required">
<xs:annotation>
<xs:documentation>
Arbitrary product code that uniquely identifies the
product, i.e. EAN-code.
</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:minLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="idType" type="mstnsroductIDEnumType"
use="optional" default="SupplierCode">
<xs:annotation>
<xs:documentation>
Defines which id is used to identify the product.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="supplierID" type="xs:integer"
use="optional">
<xs:annotation>
<xs:documentation>
Identifies the actual supplier of the product.
This must only be set if different from the
customerID, which is the case when a product is added by a retailer store
(occurs for non-active suppliers.)
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="delete" type="xs:boolean"
use="optional">
<xs:annotation>
<xs:documentation>
True when the chosen product shall be deleted from
the mediablob.
This will remove all product texts and links to
pictures as well. If the product is owned by another company, only the
localized texts and pictures are removed.
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="customerID" type="xs:string" use="required">
<xs:annotation>
<xs:documentation>Identifies the mediablob customer who uploads
the product information.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="customerIDType" type="mstns:customerIDEnumType"
use="optional" default="ShoppaID">
<xs:annotation>
<xs:documentation>
Defines how the customerID is used to identify a customer.
</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute name="createDate" type="xs:dateTime" use="required">
<xs:annotation>
<xs:documentation>Date and time when the product information was
created.</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
<xs:simpleType name="customerIDEnumType">
<xs:annotation>
<xs:documentation>
Enumeration of available customer identifiers.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="ShoppaID">
<xs:annotation>
<xs:documentation>
Shoppas internal identifier.
The value is unique within the Shoppa domain and will never
change.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value ="ExternalID">
<xs:annotation>
<xs:documentation>
Customer specific identifier.
The value is only required to be unique within the current
organizations subtree.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="productIDEnumType">
<xs:annotation>
<xs:documentation>
Enumeration of available product identifiers.
</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="SupplierCode">
<xs:annotation>
<xs:documentation>
The suppliers internal product identifier.
The code should only be set by suppliers and must be unique
within the suppliers domain.
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="EAN8"/>
<xs:enumeration value="EAN13"/>
<xs:enumeration value="ISBN"/>
<xs:enumeration value="Code1"/>
<xs:enumeration value="Code2"/>
<xs:enumeration value="Code3"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>