1/41
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
<?xml version=”1.0”?>
What is a valid XML declaration?
Extensible Markup Langauge
What does XML stand for?
<price-list>
What is a valid XML element name?
<!— comment —>
What symbol is used for XML comments?
<review rating=”5”>
What is an example of an XML attribute?
Elements
Can hold multiple values and hierarchy
XML DTD
Defines structure and rules of XML document
XML Namespace
To avoid element name conflicts
All tags must be closed
Valid XML syntax rule
One
An XML document must contain how many root elements?
Spaces in element names
NOT allowed in XML
XML Prolog
The declaration line <?xml version="1.0"?>
True
Is XML case-sensitive?
XML Comments
They can be placed anywhere
Significant
In XML, whitespace is what?
It uses opening and closing tags
XML is considered more verbose than JSON because
<book><title>Intro</title></book>
Valid XML snippet
Double Quotes
XML attributes and Json strings should always use this.
Root → Child
XML structure flows from what to what?
xlmns:bk=”http://example.com/books”
Valid XML namespace declaration
Once, at the top of the document
XML declaration must appear on where?
Tags
XML is called "self-descriptive" because this one thing is describing data meaning
<123book>
An invalid XML element
DTD
XML documents can be validated against
String, Number, Boolean, Null, Array, Object
Which of the following is a valid JSON data type?
True and False
JSON Boolean values are
Null
JSON valid null response is what?
[ ]
Which brackets are used for JSON arrays?
[1,2,3]
A valid JSON array is
Date
JSON cannot directly handle which data type
JSON.parse
Converting JSON string → Object
JSON.stringify()
Converting Object → JSON string
Functions
JSON does not allow
Comments
JSON does not support
Function as values
JSON cannot contain
JavaScript Object Syntax
JSON is based on which format
Undefined
NOT a valid JSON value
String is invalid JSON
JSON.parse can throw an error if?
Valid JSON Data Types
JSON arrays can contain
{“age”: 25, “married”: false}
Which of the following is correct JSON syntax?
Storing and Exchanging Data
JSON is mainly used for
Language-Independent
JSON can be used with many programming languages and it is considered what?