473,698 Members | 2,528 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="unbo unded">

<xs:element name="Order_x00 20_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:decima l" />

<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="DocumentK ey11" msdata:PrimaryK ey="true">

<xs:selector xpath=".//mstns:Order_x00 20_Details" />

<xs:field xpath="mstns:Or derID" />

<xs:field xpath="mstns:Pr oductID" />

</xs:unique>

</xs:element>

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

<xs:complexType >

<xs:choice maxOccurs="unbo unded">

<xs:element name="Orders">

<xs:complexType >

<xs:sequence>

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

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

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

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

<xs:element name="RequiredD ate" type="xs:dateTi me" minOccurs="0" />

<xs:element name="ShippedDa te" type="xs:dateTi me" minOccurs="0" />

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

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

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

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

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

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

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

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

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:choice>

</xs:complexType>

<xs:unique name="DocumentK ey1" msdata:PrimaryK ey="true">

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

<xs:field xpath="mstns:Or derID" />

</xs:unique>

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

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

Similar topics

0
2650
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 interesting, is if I change the name of ErrorType to Error the issue goes away. Has anyone else ran into this issue? Do you have a solution? The pertanant part of the schema: <snip>
0
1683
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 schema using XMLSpy. However when I try to use the Schema in Infopath, its says that it can only create based on one root element implying, I have more than one. The sample files that came with XMLSpy also shows more than one root element though the...
0
2425
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 service. I have run the schema through XML Spy and validated it with no errors, but when attempting to generate a dataset, I keeping getting a 'undefined data type' error. The schema is quite large so I don't know if that is causing the problem or...
1
3332
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 on filling the dataset. I have also tried creating it from the XML schema but I am having problems manipulating it. If someone could point me to some resources, that would be great as I can't find anything.
0
970
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 applicable for a policy. I'm trying to create a generic schema and in that i need to know how to decide on the attributes and elements,simple and complex types, denoting repeatable/iterative things in a schema and all of this stuff? i have gone...
3
8089
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 dataset.WriteXml(@"C:\Data.xml"); dataset.WriteXmlSchema(@"C:\Schema1.xml");
3
1510
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). Now then, do I: a) Create a data source that jives with their schema (say, a number of views or store procedure to represent those 33 tables, but gets it's data from my 1 table) and then create the XML file off of that or... b) Read their Schema,...
0
1473
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 you fix the problem: - A schema with the namespace 'http://www.opentravel.org/OTA/2003/05' has alre ady been added. - The document format is not recognized. - Report from 'XML Schema' is 'Expected Schema root. Make sure that the root ele ...
3
4386
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 grant createtab to that user. However, that would enable the user to create tables in other schemas as well (except those sys schema). Any way to restrict the users from creating objects in other schema than their own?
0
3359
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" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="alarm-manual alarm-manual.xsd" <h:p>Text ... <a:par-value name="myName"/... text </h:p>
0
8680
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8609
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9169
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9030
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8871
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7738
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4371
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3052
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.