1.02k likes | 1.18k Views
XML Document Design. Lesson 1: Introduction to XML. Objectives. Explain the basic concepts of markup languages List the goals of XML Describe the relationship between XML and HTML Name the organizations that govern and contribute to XML development Define XHTML
E N D
Objectives • Explain the basic concepts of markup languages • List the goals of XML • Describe the relationship between XML and HTML • Name the organizations that govern and contribute to XML development • Define XHTML • Identify browsers that support XML
WhatIs XML? • Extensible Markup Language • Hypertext Markup Language • Tags <golfer tour=“PGA”> Tiger Woods </golfer>
MarkupLanguages • Markup • WYSIWYG
SGMLRoots • STML and HTML • Meta-language • HTML went astray • HTML tried to recover its vision • Cascading Style Sheets • SGML and XML • Extensible Stylesheet Language
XMLDirectives • Design goals for XML • XML implementation
XHTML,XML and HTML • Extensible Hypertext Markup Language 1.0 • No tags
W3C Oasis BizTalk XML.org Arbortext Microsoft XML Web Services IBM XML Zone Apache XML Project XMLDevelopment Organizations
XML Parsersand Browsers • Parsers • Validating • Non-validating • Browsers • Mozilla • Microsoft Internet Explorer 6 • Opera • Netscape Navigator 7
XML AloneIs Insufficient • No linking capability • No formatting capabilities • XML documents are abstract • EDI
Implementing XML • XML schema • Development tools
Benefitsof XML • One source • Management of metadata • Universal representation and meaning • Management of content • One to many • Database publishing
Summary • Explain the basic concepts of markup languages • List the goals of XML • Describe the relationship between XML and HTML • Name the organizations that govern and contribute to XML development • Define XHTML • Identify browsers that support XML
Objectives • Construct XML documents • Explain the differences between tags and elements in XML • Specify the five rules for creating a well-formed XML document • Convert an HTML document into an XHTML file • Create a well-formed XML document
What Is an XML Document? • HTML: The lazy developer’s dream • XML: The lazy developer’s nightmare
Rules forWell-Formed XML • Opening and closing tags • New rules for empty tags • Attribute values • Nesting • Matching case between tags • Simple well-formed XML • XHTML: Stepping stone to XML
DiscerningStructure • XML character strings • Character data • White space • The root (or document) element • Tree structure of a well-formed document
Working withMixed Content • Creating a well-formed XML document from text • Adding comments to XML documents • XML encoding
Balkanizationof the Web • Confusing assortment of tags resulting from numerous tagging schemes
Summary • Construct XML documents • Explain the differences between tags and elements in XML • Specify the five rules for creating a well-formed XML document • Convert an HTML document into an XHTML file • Create a well-formed XML document
Objectives • Define the DTD • Define the DOM • Identify DTD declarations • Create a DTD • Validate an XML document • Create an XML file that conforms to a DTD • Use DTD repositories
Beyond Well-Formedness:Valid XML Documents • Valid conformance with a Document Type Definition • Rules that define the structure, syntax and vocabulary related to tags
DocumentObject Model • Core Level 1 • HTML Level 1
DocumentType Definition • The root element • Element type declarations • #PCDATA • Child elements • Element content • Mixed content • Empty elements
Referencing DTDDefinitions in XML • DOCTYPE declaration • Internal DTD • External DTD
DeclaringAttributes in a DTD • Attribute-list declarations • Commonly used attribute types • Entities • Parameter entities • Notation declarations
Pre-Existing DTDs • XML/DTD repositories
Summary • Define the DTD • Define the DOM • Identify DTD declarations • Create a DTD • Validate an XML document • Create an XML file that conforms to a DTD • Use DTD repositories
Objectives • Explain the requirements for a parser • Identify the differences between validating and non-validating parsers • Use online parsers • Use command-line parsers
Parsers • Also known as processors • Varying levels of conformance • Object-based parsers • Event-based parsers • Validating parsers • Non-validating parsers
Command-LineParsing • Verifies document compliance with well-formedness requirements and DTD
Summary • Explain the requirements for a parser • Identify the differences between validating and non-validating parsers • Use online parsers • Use command-line parsers
Objectives • Define XML namespaces and usage • Explain the XPath recommendation • Explain the XLink recommendation • Explain the XPointer recommendation • Describe the XForms and XML Query proposals
TheXML Family • Namespaces in XML • XLink • XPath • XPointer
Namespacesin XML • Namespace components • Explicit and implicit namespace declaration • Multiple namespaces • Inline namespace declaration • Namespace scope/inheritance • Namespaces and DTDs • Namespace attributes
XPath • XML Path Language • XPath nodes • Document • Root • Element • Attribute • Text • Processing instruction • Namespace • Comment
XPathExpressions • Operand • Location paths • Context node • Function calls • Predicate
XLink • XML Linking Language • Simple links • Extended links • Locators • Arcs • Resources • Titles • Link behavior
XPointer • Fragment identifier • Tracing a path • Shorthand notation • Shorthand syntax • Formal XPointer syntax • Range or portion selection
XFormsand XML Query • XForms • New generation of forms introducing business logic, calculations, and form processing • XML Query • Based pm XML Infoset
Summary • Define XML namespaces and usage • Explain the XPath recommendation • Explain the XLink recommendation • Explain the XPointer recommendation • Describe the XForms and XML Query proposals