Basics of XML language Flashcards

Learn the basics and rules of XML language

1
Q

Can I use the the following element?March

A

Incorrect, this will throw an Error in the Parser. Elements should not begin with a number.

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

What are wrapped around the element key word?

A

Angled brackets <element_name>

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

What is the Character Entity Reference for a > less greater than symbol?

A

> is coded as >

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

How do you comment out a piece of data if required or if you needed to temporarily didn’t want the data to be read by the parser

A

<!-- <name>James</name> -->

<!-- above I've just commented out a element -->

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

XML stands for?

A

eXtensible Markup Language

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

what ELEMENT is there only one of within XML document?

A

the ROOT element

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

If I had the following tag Large Earthquake in Japan

A

No, because element tags are case sensitive. … is BAD, will return a ERROR! … is GOOD,acceptable! … is GOOD, acceptable! … is OK! but not conventionally used

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

is this a valid element name/title… Dog …?

A

Yes, this is valid but not really convential used.

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

can XML elements have attributes

A

Yes, attributes give additional date ablout the XML element e.g. Running

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

What have to be inside quotation marks?

A

Attributes must be with quotes

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

What is the Character Entity Reference for a < less greater than symbol?

A

< represents the less than symbol <

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

No start tag is incorrect should <!-- </p>-->

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

What does it mean to have a “well-formed” XML document

A

Empty tags that do not contain any contant or data in them should be closed with /> instead of the using e.g use

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

Does the XML need a declaration?

A

Yes but sometime the browser will a default

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

What are attributes? Give an example

A

Attributes are additional info about element. James Murphy

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

Is the XML declaration required or optional

A

the declaration is optional and is usually at the top of the XML document

16
Q

What is the Character Entity Reference for a “ quotation mark symbol?

A

“quatation marks” are coded as "

18
Q

What does XML do? Hint SOT

A

XMLorganizes, sorts, transports data

19
Q

What are “Character Entity Reference” give an example?

A

& is coded as…. &

20
Q

Do XML documents have a single root element?

A

Yes and only one.

21
Q

What is the Character Entity Reference for a ‘ apostrophe symbol?

A

’ is represented as '