1.1 Flashcards
(45 cards)
XML stands for
eXtensible Markup Language
XML was designed to
1/ store and transport data.
2/ be both human- and machine-readable.
Qu’est ce que Le langage HTML
Le langage HTML (HyperText Markup Language) est un langage informatique utilisé pour créer des pages web. Il permet de structurer le contenu d’une page en utilisant des balises, c’est-à-dire des éléments de code qui indiquent au navigateur web comment afficher le contenu d’une page.
What is : <
An Entity reference for <
is White-space Preserved in XML ?
yes, White-space is Preserved in XML
How XML documents that conform to the syntax rules are called ?
XML documents that conform to the syntax rules above are said to be “Well Formed” XML documents.
How is called the first element after the Prolog
the Root Element
What is a self-closing tag
<element></element>
and it’s the equivalent of : <element></element>
It is used for empty XML elements
What is an XML Element?
An XML element is everything from (including) the element’s start tag to (including) the element’s end tag.
<price>29.99</price>
An element can contain:
text
attributes
other elements
or a mix of the above
where Namespaces can be declared
- The namespace can be defined by an xmlns attribute in the start tag of an element.
- It can also be defined In the Root element
What’s a URI
A Uniform Resource Identifier (URI) is a string of characters which identifies an Internet Resource.
wHAT IS THE MOST common URI
The most common URI is the Uniform Resource Locator (URL)
What is an URL
the Uniform Resource Locator (URL) identifies an Internet domain address
What’s a Well formed XML doc
An XML document with correct syntax is called “Well Formed”.
When an XML doc is valid ?
An XML document validated against an XML Schema is both “Well Formed” and “Valid”.
4 features of XML Schema
XML Schemas are written in XML
XML Schemas are extensible to additions
XML Schemas support data types
XML Schemas support namespaces
Why use a XML schema
With XML Schema, independent groups of people can agree on a standard for interchanging data.
+
With XML Schema, you can verify data.
Features of XPath
XPath is a syntax for defining parts of an XML document
XPath uses path expressions to navigate in XML documents
XPath contains a library of standard functions
XPath is a major element in XSLT and in XQuery
XPath is a W3C recommendation
Why do we use XML
XML files are often used to store and exchange data between different applications, platforms or programming languages.
What is an XML Parser
An XML parser is a computer program designed to read and parse XML (eXtensible Markup Language) files.
What does an XML Parser
When a program needs to read an XML file, it uses an XML parser to parse the contents of the file and extract the necessary data. Parsing includes:
- Checking the structure and syntax of the XML file,
- Creating an internal representation of the XML tree,
- Validating the data against predefined rules, and
- Manipulating the data for use in the program.
How can an an XML file be parsed
before an XML document can be accessed, it must be loaded into an XML DOM object
All modern browsers have a built-in XML parser that can convert text into an XML DOM object
translation of “node” ?
Noeud