XML Flashcards

1
Q

What is XML?

A

Extensible Markup Language is a simple text-based format for representing structural information such as documents, data, configurations, oils, invoices, etc. It is derived from an older format called, SGML to be more suitable for web use. It is used mainly to describe data, a flexible way to create information formats and electronically share stricter data via the public internet

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

What is “well formed” V’s “valid xml”?

A

Valid xml has a Document Type Definition (DTD) associated with it and has been verified against all the rules contained in the DTD in addition to being well formed

Well formed is xml that has tags closed in proper order and has declarations (if any) first thing in the file with proper attributes.

Validity refers to semantics, and well-formedness refers to the syntax (rules that determine how an xml app can be written)

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

What is the difference between DTD and XSD?

A

DTDs (Document Type Definition) are the declarations that define a document type for SGML (Standard Generalized Markup Languages). Xml Schema Definition (XSD) defined the structure of an XML document. It is used to describe the attributes of a XML language precisely.

XSD is extensible, you can define new elements from existing ones. DTD cannot.
XSD supports data types, DTD does not.
XSD uses XML, DTD uses SGML
XSD gives dev more control on the structure of the XML doc, DTD does not
XSD supports namespace, DTD does not.

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

What is XML namespace?

A

A collection of names that can be used as attribute or element names in an xml document. Namespace qualifies element names uniquely on the web in order to avoid conflicts between elements with the same name

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

What is the syntax of XML?

A

Refers to the rules that determine how an xml document can be written. XML uses a tree structure format using a root element in which all other elements are contained. All elements must have a closing tag, all tags are case sensitive, elements must be properly nested, attribute values must always be quoted.

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

What is an XPath?

A

Stands for XML Path language is used a “path like” syntax to navigate and identify nodes in an XML document. It is used to search through and extract information from any part of an XML doc.

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