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

All - Element limitation - XML Schema

Hi !

"The all element provides an XML representation that describes an
unordered set of element types."

But for minOccurs, and maxOccurs I can only use "0" or "1". How can I
achieve that I can have more than 1 or 0 elements of the element types
inside the all element ?

..I recognized this problem with .NET Framework 1.1 , XML Schema
Validation, but I though before that in minOccurs and maxOccurs allow
also more than "1".

Best regards,
Istvan

*** Sent via Developersdex http://www.developersdex.com ***
Sep 29 '06 #1
2 1244
"Istvan Loerincz" <no****@devdex.comwrote in message
news:u2*************@TK2MSFTNGP04.phx.gbl...
Hi !

"The all element provides an XML representation that describes an
unordered set of element types."

But for minOccurs, and maxOccurs I can only use "0" or "1". How can I
achieve that I can have more than 1 or 0 elements of the element types
inside the all element ?

I recognized this problem with .NET Framework 1.1 , XML Schema
Validation, but I though before that in minOccurs and maxOccurs allow
also more than "1".
xs:all allows the elements to be present in any order. That can cause
ambiguities in parsing, so xs:all is heavily restricted and rarely used.

Can you acheive your goals using xs:sequence instead? That will require that
elements be present in a known order, but it is the most often used
technique.

John
Sep 29 '06 #2
Hello John
I have it now with <xs:seuquence>, but what I make will be a
configuration file and wanted to reach a little bit more flexibility.
But it's ok, now I use then <xs:sequencefurther.
Thank you for your answer.

Best Regards,
Istvan

*** Sent via Developersdex http://www.developersdex.com ***
Oct 2 '06 #3

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

Similar topics

0
by: wooks | last post by:
<?xml version="1.0" ?> - <xsd:schema targetNamespace="urn:faster:userlogin" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:faster:userlogin"> <xsd:include...
4
by: Jari Kujansuu | last post by:
I can successfully parse XML document using SAX or DOM and I can also validate XML document against schema. Problem is that my program should deal with user-defined schemas which means that when...
4
by: Gordon Dickens | last post by:
I have target xml to generate from schema. All of the XML instances have the same global element i.e. <base>. I would like to combine all of the schemas into a single schema where I could...
1
by: John Ruiz | last post by:
hi. --short version-- i have an .xsd file (XML Schema). It has many elements in it (tags). Sometimes, my application wants to know everything there is to know (attributes, constraints, etc)...
1
by: jrmsmo | last post by:
Hi there, I have an interesting problem that maybe you pros can suggest how I solve. I'm working with a third party program that serializes an XML document (it was obviously not designed with schema...
6
by: Martin | last post by:
Hi, I have a xml file like the one below <?xml version="1.0" encoding="utf-8"?><e1 xmlns:e1="http://tempuri.org/Source1.xsd" e1:att1="1" e1:att2="2" e1:rest="345"/> If I try to create a...
1
by: mflll | last post by:
How does one say in one schema that one wants an element defined in another schema. For example, I want to include in the Employee definition, an Address element defined in the schema...
2
by: Istvan Loerincz | last post by:
Hi ! "The all element provides an XML representation that describes an unordered set of element types." But for minOccurs, and maxOccurs I can only use "0" or "1". How can I achieve that I...
0
by: icesign | last post by:
I know that the selector of these elements has a scope relative to the element being declared, but maybe there is a way to get beyond bounds of this scope or maybe just a way to extend base element?...
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: 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
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
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
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.