XML Flashcards

1
Q

What is the meaning of XML?

A

Extensible Markup Language

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

What does XML do?

A

It describes and stores data

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

What are the characteristics of XML?

A

Flexible
Easy to share
Describes itself
Easy to extend
Vendor Independent
Platform Independent

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

Data is also known as

A

Text Node

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

Parent Node is also known as

A

Root Element

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

Book/authors/author. You can call this as a

A

Xpath otr path

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

It is a hierarchical data model

A

XML

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

Who uses XML

A

Banking
Life Sciences
Healthcare
Insurance
FInancial Markets
CrossIndustry
Chemical & Petroleum
Automotive
Retail
Electronics
Telecommunications
Energy and Utilities

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

What representation that uses node types

A

Parsed-hierarchical representation of an XML document

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

What representation uses root element, element, attribute, and text node

A

Serialized representation

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

A valid XML document is

A

A well-formed XML document
A document compliant with rules defined in an XML schema document or a document Type Definition document.

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

What is DTD document

A

Document Type Definition

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

A well-formed XML document is

A

It must have one and olny one root element
Each element begins and ends with an end tag
An element can contain other elements, attributes, or text nodes
Attribute values must be enclosed in double quotes. Text nodes, on the other hand, should not

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

It allows you to constrain the content of your XML documents (Kumbaga conditions)

A

Document Type Definition

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

It specify what kinds of content is allowed, where it is allowed to appear, and how many instances of certain type of content can appear

A

Document Type Definition

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

It can be declared directly inside the XML document or attached via an external file

A

Document Type Definition

17
Q

It is relatively simple to write, but not particularly powerful or flexible

A

Document Type Definition

18
Q

For example, to limit element content to phone numbers or integer digits, what is this example

A

Document Type Definition

19
Q

It consist of a set of markup declations that define the document’s elements, attributes, and other information

A

Document Type Definition

20
Q

What are the DTD markup declarations

A

Elements
Attributes
Entities
Notations
Processing Instructions
Comments
Parameter Entity References

21
Q

What is the format of a DTD

A

<!DOCTYPE Name [
Document Type Definition
]>
Where Name is the name of the root node of the document and the Document Type Definition defines the content rules

22
Q

What is the format for DTD Element declaration?

A

<!ELEMENT Name ContentSpecification>
Where Name is the name of the element
Content Specification defines the valid contents for the elemts

23
Q

What are the contents that Elements can contain

A

EMPTY Content
ANY Content
Element Content
Mixed Content

24
Q

Element that has no children

A

Empty Content

25
Element has no content constraints
ANY Content
26
Element can contain the listed child elements but that's it
Element content
27
Element can contain elements and character data
Mixed content
28
This means zero or one of the indicated element
?
29
This means one or more of the indicated element
+
30
This means zero or more the indicated element
*
31
All attributes intended for use in a document must be declared via an
Attribute list declaration
32
An attribute list declaration has the format
Where ElemName is the name of the element where the attribute can be used AttrName is the name of the attribute Type id the attribute's type DefaultDecl is the default declaration
33
Attribute can be
String type indicated by the CDATA keyword. Which means attribute can be any string Enumerated type which means the attribute can be one of several potential values Tokenized type
34
What are the default Declaration for attributes
#REQUIRED #IMPLIED Default Value #FIXED
35
What function converts an XML document to an object
simplexml_load_file('xml file')