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

Schema Question

<xsd:complexType name="BaseMoney">
<xsd:sequence>
<xsd:element name="amount" type="xsd:decimal"
minOccurs="0"/>
<xsd:element name="currencyCode"
type="tns:CurrencyTypeCode" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="MiscSaleInfo">
<xsd:sequence>
<xsd:element name="amount"
type="tns:BaseMoney" minOccurs="0"/>
<xsd:element name="chargeType"
type="tns:MiscSaleChargeTypeCode" minOccurs="0"/>
</xsd:sequence>
In the above schema, I am creating a element "amount" which is of
type "BaseMoney".But BaseMoney again has a elment named amount in it.
I attached a simple Example, but is it a good practice ? ( I am able
to validate both the Schema and message )

Example:
- <miscSales>
- <amount>
<amount>345.36</amount>
<currencyCode>USD</currencyCode>
</amount>

Jul 16 '07 #1
0 1876

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

Similar topics

1
by: Gregg Williams | last post by:
Hi--I am having a problem designing a schema to fit my XML data, and I'm hoping that someone can help. Essentially, I have a schema in mind and two target vocabularies for it, where one vocabulary...
2
by: Piers Chivers | last post by:
Hi, I have XML like <SomeElement> <Value>5</Value> <Value>3</Value> <Value>7</Value> </SomeElement> I want to define the schema to say that the <Value>s must contain at least
2
by: Clarence | last post by:
Hi, here is an XML schema excerpt for an employees details. <xs:element name="ADDRESS"> <xs:complexType> <xs:sequence> <xs:element name="ADDRESSLINE" type="xs:string" maxOccurs="6"/>...
1
by: Mike Busch | last post by:
Jason Karns wrote: > I have a question involving the creation of an XML Schema and am looking for guidance or the name of someone who may be a good person to talk to about this. The problem is...
2
by: Vitali Gontsharuk | last post by:
Hi! I can't find an answer to the following question: does the "import" command in XML Schema import also element declarations? Or only type definitions? As far as I understood, the first takes...
3
by: AP | last post by:
Hello, I'm trying to use .NET to validate incoming XML documents against the appropriate schema in our database. I do not want to use the document's schemaLocation attribute to validate for...
4
by: kurtrips | last post by:
Hi, The schema tag (the root tag) of a schema file looks like <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> It is mentioned on many web pages across...
2
by: bmichel | last post by:
Regarding the XSD schema shown below, I want to modifiy it so that: - the "owner_id" attribute in the "dog" element to exist in one of the "owner" element "id" attribute. - the "id" attribute in...
4
by: Jerry N | last post by:
I was wondering how to write the schema so that the DataSet LoadXml() method will create the associated DataTable. I've tried the following in the schema file (using VS.NET 2005): ...
3
by: Robert Dailey | last post by:
Take the following XML: <Frame type="Image" id="frame1"> <Draw/> </Frame> <Frame type="Text" id="frame2"> <Print/> </Frame>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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...
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,...

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.