Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Computer Certification > MCAD > Help with Kalani 70-320 Training Guide question on XML schemas

Reply
Thread Tools

Help with Kalani 70-320 Training Guide question on XML schemas

 
 
Pookee
Guest
Posts: n/a
 
      09-29-2004
In the exam questions for chapter 1 of Kalani's 70-320 training guide
there is a question about XML schema files that I do not understand.
Here is the question and answer:

You have been assigned the task of developing an XML schema file to
serve as part of the data later of your company's new Web application.
The application will deliver details on sporing events to
subscribers. Each sporting event is characterized by several peices
of information, including the date, sport, and teams involved. What
should you use to represent a sporting event in the XML schema?

A. Complex type
B. Simple type
C. Element
D. Attribute

The answer is A. Explanation: Because the sporting event will contain
several pieces of information, it is best represented as a complex
type. The sonstituent pieces of information within this type can be
represented by elements, attributes, or simple types.

I understand that B is wrong because simple types are used to define
constraints for element values and I see that D is wrong because the
sporting event has more than one piece of data associated with it. My
question is - what is the difference between A and C? An element can
contain several pieces of information can't it? When I look at the
XML behind the schema created in the step by steps I see that all of
the elements are children of an <xs:complexType> element. This is not
really explained in the book and MSDN only says that a complex type
"determines the set of attributes and the content of an element". Can
someone give me a more thourough explanation of what a complex type is
and how it relates to an element and this question?
 
Reply With Quote
 
 
 
 
Hermit Dave
Guest
Posts: n/a
 
      09-29-2004
element and attributes are xml grammer

<sport>basketball</sport> is an element..
<sport team="NBA"></sport>
team here is the attribute.

so if you have xml like
<sport>
<name>basketball</name>
<teams>9</teams>
</sport>

how can you represent it with a schema.. consider that the above is a class.
Would Sport be a primitive type ? or could you write a custom class which
would have different fields representing the different properties of that
sport ?
its a complex type or a custom class.. that my friend is the reason why its
A.

For the reason above it cannot be B and since we are talking about XML
Schema and not XML in general it cannot be C or D

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Pookee" <> wrote in message
news: om...
> In the exam questions for chapter 1 of Kalani's 70-320 training guide
> there is a question about XML schema files that I do not understand.
> Here is the question and answer:
>
> You have been assigned the task of developing an XML schema file to
> serve as part of the data later of your company's new Web application.
> The application will deliver details on sporing events to
> subscribers. Each sporting event is characterized by several peices
> of information, including the date, sport, and teams involved. What
> should you use to represent a sporting event in the XML schema?
>
> A. Complex type
> B. Simple type
> C. Element
> D. Attribute
>
> The answer is A. Explanation: Because the sporting event will contain
> several pieces of information, it is best represented as a complex
> type. The sonstituent pieces of information within this type can be
> represented by elements, attributes, or simple types.
>
> I understand that B is wrong because simple types are used to define
> constraints for element values and I see that D is wrong because the
> sporting event has more than one piece of data associated with it. My
> question is - what is the difference between A and C? An element can
> contain several pieces of information can't it? When I look at the
> XML behind the schema created in the step by steps I see that all of
> the elements are children of an <xs:complexType> element. This is not
> really explained in the book and MSDN only says that a complex type
> "determines the set of attributes and the content of an element". Can
> someone give me a more thourough explanation of what a complex type is
> and how it relates to an element and this question?



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
I need 70-229 Amit Kalani's training guide & an important message to share books BOGABOGA MCAD 8 03-13-2006 10:02 AM
FREE E - BOOK Available Now for Free MCAD/MCSD Training Guide (70-315): Developing and Implementing Web Applications with Visual C# and Visual Studio.NET by Amit Kalani (Paperback) BOGABOGA MCAD 12 04-21-2005 01:13 PM
FREE E - BOOK Available Now for Free MCAD/MCSD Training Guide (70-320): Developing XML Web Services and Server Components with Visual C# and Microsoft.NET Framework by Amit Kalani (Paperback) BOGABOGA MCAD 3 04-12-2005 08:02 PM
One error in "Amit Kalani" Training Guide jacksu MCSA 5 06-10-2004 02:44 PM
Buy used Amit Kalani's "MCAD Training Guide (70-316)" cSharpzone MCAD 4 01-22-2004 04:56 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57