I was saving the schema of a dataset using Dataset.WriteXmlSchema.
I am getting the result like this
<?xml version="1.0" standalone="yes"?>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="Customers">
<xs:complexType>
<xs:sequence>
<xs:element name="OwnerTitle" type="xs:string" minOccurs="0" />
<xs:element name="OwnerName" type="xs:string" minOccurs="0" />
<xs:element name="VIN" type="xs:string" minOccurs="0" />
<xs:element name="InitialMailingSent" type="xs:string" minOccurs="0" />
<xs:element name="ResponseReceived" type="xs:string" minOccurs="0" />
<xs:element name="IgnoreDate" type="xs:string" minOccurs="0" />
<xs:element name="RTSDate" type="xs:string" minOccurs="0" />
<xs:element name="AmendDate" type="xs:string" minOccurs="0" />
<xs:element name="RecontactDate" type="xs:string" minOccurs="0" />
<xs:element name="ReContact" type="xs:string" minOccurs="0" />
<xs:element name="CommentMailingSent" type="xs:string" minOccurs="0" />
<xs:element name="NoContactDate" type="xs:string" minOccurs="0" />
<xs:element name="NoQuestionnaireDate" type="xs:string" minOccurs="0" />
<xs:element name="NoPromoDate" type="xs:string" minOccurs="0" />
<xs:element name="OwnerCompanyName" type="xs:string" minOccurs="0" />
<xs:element name="CompanyPositionDepartment" type="xs:string" minOccurs="0" />
<xs:element name="OwnerAddr1" type="xs:string" minOccurs="0" />
<xs:element name="OwnerAddr2" type="xs:string" minOccurs="0" />
<xs:element name="State" type="xs:string" minOccurs="0" />
<xs:element name="Ownerpostcode" type="xs:string" minOccurs="0" />
<xs:element name="ContactPhone" type="xs:string" minOccurs="0" />
<xs:element name="ContactFax" type="xs:string" minOccurs="0" />
<xs:element name="ContactMobile" type="xs:string" minOccurs="0" />
<xs:element name="ContactEmail" type="xs:string" minOccurs="0" />
<xs:element name="RegistrationNo" type="xs:string" minOccurs="0" />
<xs:element name="URN" type="xs:string" minOccurs="0" />
<xs:element name="FirstName" type="xs:string" minOccurs="0" />
<xs:element name="LastName" type="xs:string" minOccurs="0" />
<xs:element name="Source" type="xs:string" minOccurs="0" />
<xs:element name="SourceId" type="xs:string" minOccurs="0" />
<xs:element name="FileType" type="xs:string" minOccurs="0" />
<xs:element name="FileSeqNo" type="xs:string" minOccurs="0" />
<xs:element name="Country" type="xs:string" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
The above result doesn't have any extended properties like Annotation, Restrictions, Occurrence etc...
I want a resule like the one below
(Only one record below for sample)
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="BusinessPartner" type="BusinessPartnerType" />
<xsd:simpleType name="Name2ofOrganization">
<xsd:annotation>
<xsd:documentation xml:lang="EN">Name 2 of orgnaization </xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="8"/>
<xsd:whiteSpace value="preserve" fixed="true"/>
</xsd:restriction>
</xsd:simpleType>
What should i do ? Any changes to be made in dataset ?
Where am i missing??????