473,386 Members | 2,114 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Dataset.WriteXmlSchema no extended attributes

radcaesar
759 Expert 512MB
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??????
Mar 3 '08 #1
0 1032

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Jeffrey A. Voigt | last post by:
I'm having trouble loading some xml data into a dataset via the ReadXML call. I'm loading into the dataset an xml schema prior to the ReadXML call. I see that there IS in fact, 3 records that...
1
by: Dave | last post by:
Hi all, I've seen that many people have had this exact same problem in the past, but no-one seems to post the answer when (if) they solve it... so here we go again. If I create a strongly...
0
by: Kurt | last post by:
Hi, (sorry if I'm cross posting - not quite sure where to put) I am basically trying to force the user of my web service to only send a valid dataset that is based on a schema I have created. ...
3
by: Derrick | last post by:
I am reading in xml files that equate to sql tables, via XmlDataDocument, and then operating on the DataSet. With the most simple app that just loads the xml doc, I see the memory footprint of the...
1
by: J. Askey | last post by:
I am implementing a web service and thought it may be a good idea to return a more complex class (which I have called 'ServiceResponse') in order to wrap the original return value along with two...
4
by: David | last post by:
Hi, (Sorry for duplicate post, finger trouble before I finished...) using C# 1.1 I am writing a winform app that collects a dataset from a webservice. At the same time I collect the data,...
12
by: Simon | last post by:
Hi all, I'm having a baffling problem with a windows service that I'm working on. Basically, I am using a typed dataset to insert a large number of rows into an SQL Server 2005 database. But...
5
by: Lucvdv | last post by:
This would better be described by 'serialization' than 'interop', but I didn't find a newsgroup that seems closer on topic. The problem in a few words: I save data with DataSet.WriteXML, but I...
4
by: =?Utf-8?B?anAybXNmdA==?= | last post by:
I've got a DataSet that I save as XML using the DataSet DataTable's WriteXml method. If I say XmlWriteMode.IgnoreSchema, it shows up great in Excel, but I can not reopen the file in my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.