XML Flashcards

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

A
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

A

zero or more

25
Q

what does the + occurrence mean in DTD

A

one or more

26
Q

what does the ? occurrence mean in DTD

A

zero or one

27
Q

what does XML prolog look like

A
28
Q

what is the default character encoding in XML

A

UTF - 8

29
Q

what does the root element of the document translate to in UML

A

class name

30
Q

what are the 5 pre-defined entity references in XML

A
<
>
&
'
"
31
Q

to write < use

A

32
Q

to write > use

A

”>”

33
Q

to write & use

A

“&”

34
Q

to write ‘ use

A

”’”

35
Q

to write “ use

A

”””

36
Q

indicate the beginning of a DTD document with root element called student

A
37
Q

what does this line of a DTD mean

A

student must contain firstname, lastname and school elements

38
Q

what does this line of the DTD mean

A

Firstname is of type parsed character data

39
Q

what does this line of the DTD mean

A

A book should have a category attribute

If it doesnt, its default value will be ‘Literature’

40
Q

what does this line of the DTD mean

A

the bookstore element may have one or more child book elements