mode 1 XML Flashcards
What is XML?
eXtensible Markup Language.
It is a platform independent dataformat for transferring data.
Why do we use XML?
XML because each platform holds datat in a different format; this makes it difficult for them to communicate.
How do we store data in XML vs Java?
5
Hello
int var1 = 5;
What is a tag?
It’s a keyword surrounded by chevrons(diamond brackets).
So the “var1” tag look like this
first tag would be called the root tag
What is an element?
An element provides the structure of the document.
It is defined by an opening and closing tag as well as its contents
how do we access values in xml?
“xml.var1”
What is an attribute?
Attributes are defined within a tag/can be found inside a tag and can be more than 1 keyword: the 2nd or 3rd (or beyon) keywords will modify the tag in some way by providing meta data.
Example: we use the src attribute to do this: <img></img>
What is an XML Schema
an XML schema is like a schema in DB.. They map out how your data will be structured as they are the WIREFRAME for your data entries.
Types of schemas in XML
There are multiple types of schemas in XML:
XML Schema Definition (XSD)
Data Type Definition(DTD)
What is “valid XML” and “well formed XML”
Valid means it correctly follows the established XML schema
Well formed means the XML has valid syntax
What is HTML
Hypertext Markup Language - it is a markup language for creating web pages and applications.
It uses tags, elements, and attributes to organize it’s data
What technology do we use to stylize and beautify our HTML web data?
We use CSS
Cascading Style Sheets (CSS)
CSS will allow you to style the data to make it look more sleek and pretty.
What technology gives our webpage functionality?
JavaScript (JS)
JS will allow us to utilize programming concepts in a webpage.
Name some common tabs we use in HTML
<div> - defines a "division of the page" <p> - defines a paragraph <span> - an inline tag for grouping text or elements <b> - bold text <i> - italicized text <h1>, <h2>, ... <h6> - these are headings, h1 is largest and h6 is smallest <br> - line break </h6></h2></h1> - defines a table <img> <ol> - an ordered list </ol><ul> - an unordered list <a href=""> - makes a hyperlink</a></ul></i></b></span></p></div>
What are SEMANTIC and NON-SEMANTIC elements?
Semantic Elements defines the meaning for the web page rather than just presentation
Non-semantic elements that are not related to the content on the web page. E.g; elements like <div> and <span></span></div>