XML Flashcards

(40 cards)

1
Q

What is metadata

A

data about what the data is

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

each XML document element is created from what

A

UML instance of a class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

XML tag name should be the same as the

A

Uml class name

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

restrictions on XML tag names

A

cannot contain spaces
cannot begin with _
cannot begin with the letters XML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

is there a representation for multivalued attributes in XML eg arrays

A

no

they must be translated into individual XML elements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

opening tag

A

< Name >

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

closing tag

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

what does rtf stand for

A

rich text format

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

what does SGML stand for

A

standard generalised mark up language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

what is the de facto SGML

A

HTML

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

what does DTD stand for

A

document type definition

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is contained in the DTD file

A

rules about what can be contained in the document

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what does OMG stand for

A

object management group

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

how to create a reference to an object of a particular class

A

using idref

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what does an attribute content look like

A

in quotation marks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

what does a text content look like

A

1984

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

for repeated texts or global texts that will have to be used again and again, how can they be shortened

A

give it a name in !DOCTYPE

18
Q

what are entities

A

storage units for repeated texts

19
Q

comments in XML

20
Q

the declaration or prolog informs the XML software of what

A

the version of XML being used

the character encoding scheme used

whether or not a set of external declaration affect the interpretation of the document

21
Q

well formed XML should be

A

Declaration required

AT least 1 element

empty elements written correctly

closing tags

attribute values are quoted

start and closing tag match

correct nesting

22
Q

what does DTD do

A

defines structure/model of XML documents

23
Q

is a DTD file stored within the XML file

A

can be an external plain text file and referenced by XML document

or stored in the doc

24
Q

what does the * occurrence mean in DTD

25
what does the + occurrence mean in DTD
one or more
26
what does the ? occurrence mean in DTD
zero or one
27
what does XML prolog look like
28
what is the default character encoding in XML
UTF - 8
29
what does the root element of the document translate to in UML
class name
30
what are the 5 pre-defined entity references in XML
``` < > & ' " ```
31
to write < use
"
32
to write > use
">"
33
to write & use
"&"
34
to write ' use
"'"
35
to write " use
"""
36
indicate the beginning of a DTD document with root element called student
37
what does this line of a DTD mean
student must contain firstname, lastname and school elements
38
what does this line of the DTD mean
Firstname is of type parsed character data
39
what does this line of the DTD mean
A book should have a category attribute If it doesnt, its default value will be 'Literature'
40
what does this line of the DTD mean
the bookstore element may have one or more child book elements