473,385 Members | 1,347 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.

galaxy quest

hey all,

in the overall scheme of the planet earth, why does there have to be a
MinOccurs property of an element in the dataset designer?

What is this used for in general lamen's terms.

thanks,
rodchar
Nov 21 '05 #1
4 939
Because without it, how would you specify that an element should occur
exactly one and only one time?
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
hey all,

in the overall scheme of the planet earth, why does there have to be a
MinOccurs property of an element in the dataset designer?

What is this used for in general lamen's terms.

thanks,
rodchar

Nov 21 '05 #2
could you please give me an example or two why you would want to specify an
element occur only once or any specific number of times.

please forgive me if i'm not seeing the obvious. i'm relatively new to xml.

"Scott M." wrote:
Because without it, how would you specify that an element should occur
exactly one and only one time?
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
hey all,

in the overall scheme of the planet earth, why does there have to be a
MinOccurs property of an element in the dataset designer?

What is this used for in general lamen's terms.

thanks,
rodchar


Nov 21 '05 #3
Well, I think that is a pretty fundamental question but consider this XML:

<cars>
<car>
<make>Honda</make>
<model>Accord</model>
<possibleColor>Yellow</possibleColor>
<possibleColor>Green</possibleColor>
<possibleColor>Blue</possibleColor>
<possibleColor>Black</possibleColor>
<possibleColor>White</possibleColor>
<possibleColor>Grey</possibleColor>
</car>
<car>
<make>Dodge</make>
<model>Viper</model>
<possibleColor>Red</possibleColor>
<possibleColor>Green</possibleColor>
<possibleColor>Blue</possibleColor>
<possibleColor>Black</possibleColor>
<turbo>true</turbo>
</car>
</cars>

Now, it certainly doesn't make sense that one particular car would have more
than one model and we need to make sure that each car we talk about tells us
what model it is, so we would need a way to say "Hey, you can only use the
<model> element once and it can't be omitted." That's where the use of
MinOccurs=1 MaxOccurs=1 would come in.

On the other hand, you can order this car in one of several colors but it
must have at least one color that it could be, so we need to be able to have
many <possibleColor> elements. This is where MinOccurs=1 MaxOccurs=6 would
come in.

Now, the Honda Accord is not a turbocharged vehicle, but other a Dodge Viper
"might" be, so in the schema we would have a <tubo> element that is
configured with MinOccurs=0 MaxOccurs=1 to specify that a <turbo> element
"could" exist once but doesn't have to.

Does this make sense?
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
could you please give me an example or two why you would want to specify
an
element occur only once or any specific number of times.

please forgive me if i'm not seeing the obvious. i'm relatively new to
xml.

"Scott M." wrote:
Because without it, how would you specify that an element should occur
exactly one and only one time?
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
> hey all,
>
> in the overall scheme of the planet earth, why does there have to be a
> MinOccurs property of an element in the dataset designer?
>
> What is this used for in general lamen's terms.
>
> thanks,
> rodchar


Nov 21 '05 #4
thanks that helped.

"Scott M." wrote:
Well, I think that is a pretty fundamental question but consider this XML:

<cars>
<car>
<make>Honda</make>
<model>Accord</model>
<possibleColor>Yellow</possibleColor>
<possibleColor>Green</possibleColor>
<possibleColor>Blue</possibleColor>
<possibleColor>Black</possibleColor>
<possibleColor>White</possibleColor>
<possibleColor>Grey</possibleColor>
</car>
<car>
<make>Dodge</make>
<model>Viper</model>
<possibleColor>Red</possibleColor>
<possibleColor>Green</possibleColor>
<possibleColor>Blue</possibleColor>
<possibleColor>Black</possibleColor>
<turbo>true</turbo>
</car>
</cars>

Now, it certainly doesn't make sense that one particular car would have more
than one model and we need to make sure that each car we talk about tells us
what model it is, so we would need a way to say "Hey, you can only use the
<model> element once and it can't be omitted." That's where the use of
MinOccurs=1 MaxOccurs=1 would come in.

On the other hand, you can order this car in one of several colors but it
must have at least one color that it could be, so we need to be able to have
many <possibleColor> elements. This is where MinOccurs=1 MaxOccurs=6 would
come in.

Now, the Honda Accord is not a turbocharged vehicle, but other a Dodge Viper
"might" be, so in the schema we would have a <tubo> element that is
configured with MinOccurs=0 MaxOccurs=1 to specify that a <turbo> element
"could" exist once but doesn't have to.

Does this make sense?
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
could you please give me an example or two why you would want to specify
an
element occur only once or any specific number of times.

please forgive me if i'm not seeing the obvious. i'm relatively new to
xml.

"Scott M." wrote:
Because without it, how would you specify that an element should occur
exactly one and only one time?
"rodchar" <ro*****@discussions.microsoft.com> wrote in message
news:71**********************************@microsof t.com...
> hey all,
>
> in the overall scheme of the planet earth, why does there have to be a
> MinOccurs property of an element in the dataset designer?
>
> What is this used for in general lamen's terms.
>
> thanks,
> rodchar


Nov 21 '05 #5

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

Similar topics

1
by: Trent | last post by:
Hello, I was wondering if anyone here could help with a Quest Central issue. I have two different hosts listed in Quest Central. Each host has a database on it, but the databases have the...
3
by: Robert Stearns | last post by:
Apparently due to an intellectual property suit by CA, Quest Central for DB2 has gone away. They can/will not sell any license extensions. In a project I am doing, we make extensive use of quest...
1
by: Ross Klatte | last post by:
Okay, so he didn't. So, who cares? The important question is: How do I direct my SPUFI output to a disk file? I did this before, but now I have forgotten it. (And yet, you say Arnold is the...
1
by: lewi | last post by:
How do I access data members of a parent form class and from a function of a child form class. Both classes are both in the same name space and are public classes... The child form is a Modal...
1
by: x taol | last post by:
tbl1..... fPum p1 p2 p3 ======================== tbl2....... fNum fDate fGoods fIn fOut fStock 1 5/6 p1 9 1 8 2 5/7 p2 7 3 4
0
by: Piero 'Giops' Giorgi | last post by:
Hi! I'm testing SQL Turbo (From Quest Software) Any of you guys ever used it? Impressions? Advice? P
4
by: bj7lewis | last post by:
I am currently C++/Win32/MFC & C# programmer using VS.NET 2002 and jumped into VS.NET 2003 but that was a waste so I skipped VS.NET 2005 cause buying VS.NET 2003. Now after checking out VS.NET 2008...
0
by: harley1591 | last post by:
JEWEL QUEST crack http://cracks.00bp.com F R E E
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.