XML Fundamentals Flashcards
Blank is a markup language that you can use to structure and format any kind of data that have multiple purposes
XML
XML has multiple purposes. Name 4:
data storage
data retrieval
data mining
data processing
Extensible markup language (XML) is a markup language proposed by the blank.
World Wide Web Consortium (W3C)
XML, unlike HTML, is blank because it is used by other applications beyond web browsers.
case-sensitive
Other XML applications require blank (including case sensitivity and formal syntax) of terms.
formal definition
XML is a way to attach information to blank.
text
Like all other markup languages, XML behaves like a blank that you might use to highlight text in different colors to distinguish key data points.
highlighter
Note that XML tags can be blank
nested
Nesting is indicated by an blank so the web designer can easily visualize where content will be nested.
indentation
XML is considered extensible because it is more blank than HTML. With HTML, tags are specific and fixed. With XML, you can invent whatever tag categories you wish and add as many tags as you want to highlight specific information in your code.
versatile
The inclusion or removal of blank will not affect the processing of the XML file.
XML elements
XML tags follow one of what two formats
Element tags:
Self-closing tags:
What kind of XML tag
<tag_name, attributes><text></tag_name>
Example: <city>"LA"</city></text>
Element Tags
What kind of XML tag?
<tag_name, attributes />
Example: <hierarchy></hierarchy>
Self-closing tag
You will notice that both XML formats include what two elements:
a tag_name, which is any unique identifier for a tag kind
attributes, which are an optional list of pairs attribute_name=”attribute_value”.
XML is just blank wrapped in tags.
information
XML was designed to blank - with focus on what data is
carry data
HTML was designed to blank - with focus on how data looks
display data
XML tags are not blank like HTML tags are
predefined
With XML, the author must define both the blank and the blank.
tags and document structure
XML simplifies what four things?
data sharing
data transport
platform changes
data availability
XML stores data in blank. This provides a software- and hardware-independent way of storing, transporting, and sharing data.
plain text format
XML Documents Must Have a blank Element
Root
XML documents must contain one root element that is the blank of all other elements
parent
Name the basic XML syntax
root>
<child>
<subchild>.....</subchild>
</child>
</root>
The XML blank is optional. If it exists, it must come first in the document.
prolog
XML documents can contain blank, like Norwegian øæå or French êèé.
To avoid errors, you should specify the encoding used, or save your XML files as blank
international characters
UTF-8.
blank is the default character encoding for XML documents.
UTF-8
In XML, it is illegal to omit the blank. All elements must have a blank:
closing tag
The XML prolog does not have a blank! This is not an error. The prolog is not a part of the XML document.
closing tag
Give the syntax for XML prolog
<?xml version=”1.0” encoding=”UTF-8”?>
XML tags are blank. The tag <Letter> is different from the tag <letter>.</letter></Letter>
case sensitive
Opening and closing tags must be written with the same blank
case
In XML, all elements must be properly blank within each other
nested
Properly nested or not -
<b><i>This text is bold and italic</b></i></b>
Not
Properly nested or not -
<b><i>This text is bold and italic</i></b>
Properly nested
XML elements can have attributes in name/value pairs just like in HTML.
In XML, the attribute values must always be blank
quoted
Some characters have a blank in XML.
If you place a character like “<” inside an XML element, it will generate an error because the parser interprets it as the start of a new element.
special meaning
To avoid this error, replace the “<” character with an blank
entity reference
entity reference for < less than
<
entity reference for > greater than
>
entity reference for & ampersand
&
entity reference for ‘ apostrophe
'
entity reference for “ quotation mark
"
Name the syntax for making an XML comment
<!-- This is a comment -->
Blank in the middle of a comment are not allowed
Two dashes
XML does not truncate blank (HTML truncates multiple white-spaces to one single white-space)
multiple white-spaces
XML Stores New Line as blank
LF
XML documents that conform to the syntax rules above are said to be blank XML documents.
“Well Formed”
Even though XML is intended to blank , it can also be used as a framework to provide additional style to other markup languages like HTML.
store data
While there are some practical differences, in general, HTML follows the blank and principles.
XML structure
it is important to understand that HTML is specifically designed to blank that will be read and displayed by a web browser while XML provides a structure for data but is not intended to be blankl.
render content
displayed
HTML or XML:
It was written in 1993.
HTML
HTML or XML:
It was released in 1996.
XML
HTML or XML:
Hyper Text Markup Language
HTML
HTML or XML:
stands for Extensible Markup Language.
XML
HTML or XML:
static in nature.
HTML
HTML or XML:
dynamic in nature.
XML
HTML or XML:
developed by WHATWG
HTML
HTML or XML:
developed by Worldwide Web Consortium.
XML
HTML or XML:
termed as a presentation language
HTML
HTML or XML:
neither termed as a presentation nor a programming language
XML
HTML or XML:
a markup language
HTML
HTML or XML:
framework to define markup languages
XML
HTML or XML:
can ignore small errors
HTML
HTML or XML:
does not allow errors
XML
HTML or XML:
has an extension of .html and .htm
HTML
HTML or XML:
has an extension of .xml
XML
HTML or XML:
is not Case sensitive
HTML
HTML or XML:
is Case sensitive.
XML
HTML or XML:
tags are predefined tags
HTML
HTML or XML:
tags are user-defined tags.
XML
HTML or XML:
limited number of tags.
HTML
HTML or XML:
tags are extensible
XML
HTML or XML:
does not preserve white spaces
HTML
HTML or XML:
White space can be preserved
XML
HTML or XML:
tags are used for displaying the data.
HTML
HTML or XML:
tags are used for describing the data not for displaying
XML
HTML or XML:
closing tags are not necessary
HTML
HTML or XML:
closing tags are necessary.
XML
HTML or XML:
is used to display the data
HTML
HTML or XML:
is used to store data
XML
HTML or XML:
does not carry data it just displays it.
HTML
HTML or XML:
carries the data to and from the database.
XML
HTML or XML:
offers native object support
HTML
HTML or XML:
the objects are expressed by conventions using attributes
XML
HTML or XML:
document size is relatively small
HTML
HTML or XML:
document size is relatively large as the approach of formatting and the codes both are lengthy
XML
HTML or XML:
additional application is not required for parsing of JavaScript code
HTML
HTML or XML:
DOM(Document Object Model) is required for parsing JavaScript codes and mapping of text.
XML
HTML or XML:
tools used are:
Visual Studio Code
Atom
Notepad++
Sublime Text
HTML
HTML or XML:
tools used are:
Oxygen XML
XML Notepad
Liquid Studio
XML