XML Flashcards
What is a tag?
Code used to specify formatting
Command placed between ()
Not revealed by web browser
“Non empty” cb something is between them
Beginning and end tags are identical.
False. Beginning and end tags are identical except for a (/) before the ending command
Ex. text or graphic image
What is a parameter?
Provides supplementary instructions (color, measurement, location, alignment, other appearances) to data between mark up tags
Ex. PARAMETER 1=X PARAMETER 2=Y (“” are optional best to leave out)
Ex. Command using parameters:
text
What is an empty tag?
Single tag rather than a pair of tags
Only a beginning command
What is meta-language?
Language used to create other mark up languages
XML
What is XML?
Meta-language - platform neutral means of structuring data
pure text-can be manipulated&processed easily-transferred easily across all platforms
Provides basic structure and set of rules for mark up language
Used to create unique mark up languages
One of first applications was to restore web
What is a benefit of using XML?
Develop XML documents one time and have then viewable on a wide range of devices
Create custom mark up tags that are unique to data types
Why has HTML gotten messy?
Never INTENDED to support graphics, formatting, or page layout features
WAS INTENDED to focus on meaning or content of info
How does XML support HTML?
XML allows you to describe the information in web documents
Describe data and relationships between pieces of data
Describe info across the net in applications
~ Amazon uses XML to describe products on site & allows
developers to create apps that analyze and extract data about
products
How to understand XML and HTML relationship
XML cleans up HTML
HTML - relatively unstructured mark up language
XML - sets strict tules that any mark up language must follow
HTML must adhere to XML rules and structure
~~ XML compliant version of HTML = XHTML~~
What is the W3C?
World Wide Web consortium
Oversees most standardized web technologies like HTML&XML
Sets standards for web
Where is XML making an immediate and significant impact?
Web based applications that move data across Internet
In this way XML is used as “behind the scenes data transport language” whereas HTML is used to display traditional web pages to user
How do you view XML?
Application like text editor or visual editor that shows you how the XML data is stored
Style sheets using either XSL(eXtensible style sheet language) or CSS(cascading style sheets)
To view to its actual meaning - use app designed to work with XML code
What are style sheets?
Approach to formatting web pages
Work in conjunction with HTML code to describe in more detail how HTML data should be displayed in a web browser
Same role with XML
Ex. CSS and XSL
What is Amaya?
Open source web browser offered by the W3C that can be used to browse XML documents
Supports editing of wed documents and a decent browser
Intended more to test XML documents
DOM
Document object model
Allows you to use a scripting language like JavaScript to programmatically access data in an XML document
Makes it possible to create web pages that intelligently access and display XML data based upon scripting code