473,388 Members | 1,408 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,388 software developers and data experts.

sequence and all usage issues

momotaro
357 100+
Hi,

Am writing an XSD file and am wanan use something like that:

Expand|Select|Wrap|Line Numbers
  1. <xs:element name="ENTITY">
  2.         <xs:complexType>
  3.             <xs:sequence>
  4.                 <xs:element ref="FIELD" maxOccurs="unbounded"/>
  5.                 <xs:element ref="ASSOCIATION" minOccurs="0" maxOccurs="unbounded"/>
  6.             </xs:sequence>
  7.             <xs:all>
  8.                 <xs:element name="NAME"/>
  9.                 <xs:element name="CODE"/>
  10.                 <xs:element name="DESC"/>
  11.             </xs:all>
  12.             <xs:attributeGroup ref="EntityAtt"/>
  13.         </xs:complexType>
  14.     </xs:element>
  15.  
I know its not allowed but hope you got my idea if you know how to work this issue around please help!

thank's in advance.
Jul 25 '11 #1
3 1438
jkmyoung
2,057 Expert 2GB
It'd be easier just to put the NAME CODE and DESC in a sub-element. Am trying to understand the rationale of requesting to do it in the way specified in your schema.
Jul 26 '11 #2
momotaro
357 100+
when I write CODE before NAME I don't have the right to put NAME after that
Jul 27 '11 #3
momotaro
357 100+
well can I now have one of my elements have the right to be used or not upon the existence of an attribute?

<element name="blabla" yesOrNo="no">
<element name="what">
this element should not have the right to be out here because yesOrNo is set to no..?
</element>
Jul 27 '11 #4

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

Similar topics

1
by: David Swift | last post by:
Hello. I'm new to the news group and new to IIS. I'm trying to help a client deal with memory usage issues in IIS. My client is running IIS 5.0 on a Win2K box and is running ASP scripts that...
12
by: Fabian Knopf | last post by:
Hi @ll, my IBM DB2 server runs with 60% Cpu Usage but no task has to be done. Why this ??? Cu, Fabian
10
by: Vijay Kumar R. Zanvar | last post by:
I do not know much about shift sequence(7.1.1#5). Can somebody enlighten me, giving some examples? Regards, Vijay Kumar R. Zanvar -- Calvin: Hi Mom! I'm making my own newspaper to report...
5
by: SDS | last post by:
I am writing an ASP.NET application (in C#) that, as part of a particular response, populates a MemoryStream object with binary data that is being collected from a Process object's StandardOutput. ...
7
by: Rich Denis | last post by:
Hello, I have been trying to solve a mysterious memory leak problem and was hoping that you could help me out on my stuck point. First a bit of background. We have two app servers in an app...
7
by: LBT | last post by:
I have a window service written using VB.NET. This window service will scan folders for file and grab the file content to be inserted to SQL Server on file detection. There are altogether 18...
2
by: puffy | last post by:
Hi, Everyone! I'd need a little help. I understand this is not valid, but is there an (easy) way to make it valid? <xs:complexType name="control_Type"> <xs:sequence> <xs:element name="id"...
1
by: sowmya.rangineni | last post by:
Ours is a windows based application. When we open the application the CPU usage is 0% and the Memory Usage is 54,324Kb When I open a specific form in a module, the CPU usage is 0% and the...
10
by: Daniel Peterson | last post by:
I'm responsible for a pair of IIS 6 webservers that run our production ASP.Net application. We push code on a monthly basis, and about two weeks after our October code push, we started to run into...
3
by: davemerkel | last post by:
Hi folks - wondering if anyone has any pointers on troubleshooting garbage collection. My colleagues and I are running into an interesting problem: Intermittently, we get into a situation where...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: 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
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.