Note 5 for XML
Watch & Read:
Lets make a XML file from a DTD
The W3C definition: An XML namespace is a collection of names, identified by a URI reference, which are used in XML documents as element types and attribute names.
Namespaces and DTDs: A namespace allows you to create predefined names that help with element naming conventions. Namespaces eliminates naming problems (collisions) such as element names that are the same but used differently!
You declare a name space as an attribute of your root element! xmlns:namespace-prefix="URL-of-namespace"
<jon:TV xmlns:jon="http://www.pvc.maricopa.edu/~storslee/xml/xml" >
Namespace Syntax is at W3schools. An example of a namespace is XS is the default namespace for Schema's
CSS give you the ability to customize your tags (or Elements). The syntax is
selector {property: value} or element name {property: value}
example: H2 {color:red} or Channel{color:blue}
Examples of CSS used with HTML (A Very Good Reference is located at W3Schools )Just Like HTML and CSS, in XML applies to a style to each element you create.
Try Creating a CSS for use with this XML File
Review the following:
RSS (Cnet or BoardGuaranteed's Plastic Surgery RSS)
Microsoft's XML Open Source
Terms you need to Lookup:
CSS, Namespace, Schemas, RSS
Homework:
You should be review CSS
Final Step:
Review in your mind everything we covered in class and remember to cover it again before you go to bed so your mind to process this information while you sleep.