473,403 Members | 2,270 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,403 software developers and data experts.

Creating xml schema

can someone help me?
After creating an xml schema file in VS 2003, I drag and drop a table onto
it to create its schema. However what I am getting is a document element
encapsulating the actual table definition. This is not exactly what I expect
or how it should happen according to text that I am reading. Anyone tell me
what if anything I am doing wrong? See XML sample below.

<xs:element name="Document1" msdata:Locale="en-GB">

<xs:complexType>

<xs:choice maxOccurs="unbounded">

<xs:element name="Order_x0020_Details">

<xs:complexType>

<xs:sequence>

<xs:element name="OrderID" type="xs:int" />

<xs:element name="ProductID" type="xs:int" />

<xs:element name="UnitPrice" type="xs:decimal" />

<xs:element name="Quantity" type="xs:short" />

<xs:element name="Discount" type="xs:float" />

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:choice>

</xs:complexType>

<xs:unique name="DocumentKey11" msdata:PrimaryKey="true">

<xs:selector xpath=".//mstns:Order_x0020_Details" />

<xs:field xpath="mstns:OrderID" />

<xs:field xpath="mstns:ProductID" />

</xs:unique>

</xs:element>

<xs:element name="Document" msdata:Locale="en-GB">

<xs:complexType>

<xs:choice maxOccurs="unbounded">

<xs:element name="Orders">

<xs:complexType>

<xs:sequence>

<xs:element name="OrderID" msdata:ReadOnly="true"
msdata:AutoIncrement="true" type="xs:int" />

<xs:element name="CustomerID" type="xs:string" minOccurs="0" />

<xs:element name="EmployeeID" type="xs:int" minOccurs="0" />

<xs:element name="OrderDate" type="xs:dateTime" minOccurs="0" />

<xs:element name="RequiredDate" type="xs:dateTime" minOccurs="0" />

<xs:element name="ShippedDate" type="xs:dateTime" minOccurs="0" />

<xs:element name="ShipVia" type="xs:int" minOccurs="0" />

<xs:element name="Freight" type="xs:decimal" minOccurs="0" />

<xs:element name="ShipName" type="xs:string" minOccurs="0" />

<xs:element name="ShipAddress" type="xs:string" minOccurs="0" />

<xs:element name="ShipCity" type="xs:string" minOccurs="0" />

<xs:element name="ShipRegion" type="xs:string" minOccurs="0" />

<xs:element name="ShipPostalCode" type="xs:string" minOccurs="0" />

<xs:element name="ShipCountry" type="xs:string" minOccurs="0" />

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:choice>

</xs:complexType>

<xs:unique name="DocumentKey1" msdata:PrimaryKey="true">

<xs:selector xpath=".//mstns:Orders" />

<xs:field xpath="mstns:OrderID" />

</xs:unique>

</xs:element>
--
Br,
Mark Broadbent
mcdba , mcse+i
=============
Nov 16 '05 #1
0 1039

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Brett Selleck | last post by:
We have an issue where the JAXB generated classes are creating an interface which references itself. The Schema is valid, and I have not seen this ran into before. The code is below. What is...
0
by: Fendi Baba | last post by:
Hi everyone I am new in this so please bear with me. I am trying to create a schema for a Quotation document. I created the creating the forms using Microsoft Infopath. I am creating my own...
0
by: Jeremy Summers | last post by:
Has anyone run into problems creating typed datasets from complex schemas? I am attempting to create a Typed Dataset in Visual Studio .Net from a .xsd schema file for a industry standard web...
1
by: Chris Kennedy | last post by:
How do create a dataset from scratch based on an XML schema. This will not be filled by a dataadapter. It will be a dataset which I add rows to and then save as an XML file. All the example depend...
0
by: Ganesh | last post by:
Can someone tell me how do i go about creating an xml schema for a web service that i need to develop. Basically what the web service does is reads the input schema and displays a list of forms...
3
by: Kiran | last post by:
Hi, I want to back up my data in some table in SQL server and import it back using Bulk Load of SQL server 2K. I can use the following code to backup the data in XML ...
3
by: Sindarian | last post by:
I have a Schema from the folk that shows how they want the data received. I have my own database that has that data, but in a different way (they use 33 freaking tables to store what I do in 1)....
0
by: jackfrancy | last post by:
Hi , When I tried to create web reference (Proxy Class) from WSDL.EXE or Visual Studio 2003 web Reference Tool Following error has occurred . “The error message from each known type may help...
3
by: %NAME% | last post by:
Suppose I am an admin of a database instance. Now I need to specify that user A has the right to create tables in his own schema, but not anywhere else. In order to let user A create tables, i...
0
by: mk189 | last post by:
Hi, I am trying to create XML schema of custom markup language, enriched by XHTML. In simplified version, the XML documet could look like that: <a:alarm-manual xmlns:a="alarm-manual"...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.