Shared Flashcard Set

Details

XML tutorial
XML tutorial
31
Computer Science
Undergraduate 1
02/04/2006

Additional Computer Science Flashcards

 


 

Cards

Term
XML is designed to
(select all that apply)
1. display data
2. Describe data
3. To focuss on what Data is
Definition
2. Describe data
3. To focuss on what Data is
Term
XML is a cross-platform, software and hardware independent tool for transmitting information. Thus
XML is a ______ to HTML
(Complement/Replacement)
Definition
Complement
Term
XML was designed to describe data in order to
s____,
c_____, and
e_____ data.
XML was not designed to display data.
Definition
Send
Carry
Exchange
Term
Since XML is i_________ of hardware, software and application, you can make your data available to other than only standard HTML browsers
Definition
independent
Term


The character encoding ISO-88591
is for what character set?
Definition
Latin-1/West European
Term


What is the character encoding set for Latin-1/West European.
Definition
ISO-88591
Term
Is XML case sensitive?
Definition
Yes
Term


Tove
Jani

What is the attribtue of the root element?
Definition
date , its value is "12/11/2002" and must be quoted.
Term
with XML, CR/LF is converted to LF
what is LF?
Definition
Line Feed.
Term
Adding extra information, or elements in the XML to produce the same output makes XML ---E______
Definition
an Extensible Markup Language
Term
Introduction to XML What is HTML What is XML chapter element has what type of content? 1. mixed 2. simple 3. empty.
Definition
mixed, it has both text and other elements
Term
What is the attribute is the person element? Are these both legal?
Definition
gender
Yes
Term
In this example ___ i used as an attribute in the first, but an element in next example. Anna Smith female Anna
Definition
sex
Term
Which is better to use, attributes or elements?
Definition
It depends. Generally try to avoid them if you can use elements.


attributes cannot contain multiple values (child elements can)
attributes are not easily expandable (for future changes)
attributes cannot describe structures (child elements can)
attributes are more difficult to manipulate by program code
attribute values are not easy to test against a Document Type Definition (DTD) - which is used to define the legal elements of an XML document
Term
XML with correct syntax is

(1)Well Formed XML.
(2) Valid XML
Definition
(1)Well Formed XML.
Term
XML validated against a DTD is

(1)Well Formed XML
(2)Valid XML
Definition
(2)Valid XML
Term
XML DTD A DTD defines the legal ______ of an XML document.
It stands for _____________
Definition
Document Type Definition
Term
Fill in the blanks in this dtd








]>

Definition
to,from which are the child elements of the root element note.
Term
PCDATA is text that will be _____.

CDATA means ______ data and not parsed.
Definition
Parsed, Character
Term
Elements delcared with teh category keyword ____ can contain any combination of parsable data.



Definition
ANY
Term




Definition
heading
Term
The example declaration above declares that the child element message must occur once, and only once inside the "note" element.

Definition
Term
Declaring minimum one occurrence of the same element

Definition
Term
Declaring zero or more occurrences of the same element
Definition
*
Term
Declaring zero or one occurrences of the same element
Definition
?
Term
Declaring either/or content
example:

The example above declares that the "note" element must contain a "to" element, a "from" element, a "header" element, and either a "message" or a "body" element.
Definition
message | body
Term
XML statement Convert and declare the attribute in the DTD. i.e.
Definition
Term
DTD:
Valid XML:
Valid XML:


Why use IMPIED?
Definition
Use the #IMPLIED keyword if you don't want to force the author to include an attribute, and you don't have an option for a default value.
Term
DTD: Valid XML: Is this XML valid and why?
Definition
Syntax is incorrect. Invalid, we need a value , needs to be quoted , since it is required,
Term
What is the DTD for the entity delcaration for the following, assuming the value is "Donald Duck"

&writer
Definition
DTD Example:

Term
_________ is a description of how an HTML or XML document is represented in an object-oriented fashion.
Definition
Document Object Model (DOM
Supporting users have an ad free experience!