6 Flashcards

1
Q

XML ? Use ?

A

Extensible Markup Language

  • Store and transport data
  • Be both human and machine readable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What HTML problems does XML resolve ?

A
  • Same HTML code can be displayed differently in many different browsers
  • Some browsers have proprietary HTML tags
  • HTML does not include semantics (meaning), which is needed for e-commerce bots
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Sample XML code ?

A

Algorithmic Game Theory Nisan et al. 9780521872829

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

Difference between XML and HTML ?

A
  • XML has no pre-defined tags as HTML. We define our own tags to give meaning to their content.
  • Other apps are needed to send, receive or display XML, as XML itself does nothing.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why is XML called extensible ?

A

Because all XML applications continue to work smoothly if new data is added or removed.

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

What is an XML attribute and what is it used for ?

A

A feature tag, usually as a CSS id.

Used to store metadata.

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

For what is XML best suitable ?

A
  • Multiple types of data in different formats
  • Large processes are on client computers eg automated processing of stock market data
  • Many users need different views of the data
  • Mobile objects: pricebots, shotbots
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is XML parsed into and how ?

A

Browsers have built-in parsers which convert XML to DOM objects.

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

DOM ?

A

Document Object Model

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

Non-validating parser ?

A

Parser only checks that each tag is matched by an end-tag.

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

Validating parser ?

A

Parser which checks all rules in the DOM are respected.

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

COMP315

Get value of XML element ?

A

txt = xmlDoc.getElementsByTagName (“title”)[0].childNodes[0].nodeValue

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

SVG ?

A

Scalable Vector Graphics

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

CDF ?

A

Channel Definition Format

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