CH 3 Your First XML Document
How to write and save simple XML documents How to assign XML elements three kinds of meaning: structural, semantic, and stylistic How to write a CSS style sheet that tells browsers how to display particular elements How to attach a CSS style sheet to an XML document with an xml-stylesheet processing instruction How to load XML documents into a web browser Objective
Learn how to create your first simple XML You learn which tools and software you can use to edit and save an XML document You also learn to write a style sheet for the document that describes how the content of those tags should be displayed Your First XML Document
Creating a simple XML document Hello XML! save it in a file called Loading the XML file into a web browser hello.xml Hello XML
Markup indicate three kinds of meaning 1.Structural – Specifies relationship between the diff element in the document 2.Semantic – related the individual elements to the real world 3.Stylistic – Specifies how an element is diplay Meaning in Markup
GREETING {display: block; font-size: 24pt; font-weight: bold} Hello XML! Writing a Style Sheet for an XML Document Save in file as greeting.xsl