Data Formats: XML and JSON Flashcards
Extensible Markup Language
XML
A text-based format for representing structured information.
XML
XML was derived from an older standard format called _ _ _ _ (______________)
SGML (Standard Generalized Markup Language)
XML is used as a ____________.
Metalanguage
A language used to describe other languages.
Metalanguage
XML is the basis of many format standard today such as: (4)
UBL, HTML, SVG, MathML
The most recognizable features of XML is the _______. AKA the tags or elements.
markup
XML elements can contain: (3)
Text
Attributes
Other Elements
In XML naming rules, Element/Tag names are _____________.
Case Sensitive
In XML naming rules, can element/tag names contain numbers?
Yes
In XML naming rules, can element/tag names contain hyphens?
Yes
In XML naming rules, can element/tag names contain underscores?
Yes
In XML naming rules, can element/tag names contain period?
Yes
In XML naming rules, can element/tag names only start with letter or hyphen?
No, only with letter or underscore
In XML naming rules, can element/tag names contain spaces?
No
True or False: XML tags may or may not be closed.
False, they must be closed.
True or False: Attributes must be quoted in XML tags.
True
Question in PPT: Why do we need XML?
- Lets you define and store data in a shareable manner (from AWS)
- Allows for storing and sharing data in a structured format.
An XML document that describes the structure of other XML-based languages.
XML Schema
They contain constraints about the syntax and valid data types of the document they are describing.
XML Schema
XML Schemas provide the following info about a language: (3)
- List of Valid Elements
- Valid types for the elements
- Structure/syntax of the language
Documents that use known schemas can use _________________ like HTML’s DTD
single-line schema declarations
ex. <!doctype html>
Programs that parse XML content: (2)
XML Validators
Code Editors