1 / 101

XML Document Design

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

vida
Download Presentation

XML Document Design

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. XML Document Design

  2. Lesson 1:Introduction to XML

  3. 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

  4. WhatIs XML? • Extensible Markup Language • Hypertext Markup Language • Tags <golfer tour=“PGA”> Tiger Woods </golfer>

  5. MarkupLanguages • Markup • WYSIWYG

  6. SGMLRoots • STML and HTML • Meta-language • HTML went astray • HTML tried to recover its vision • Cascading Style Sheets • SGML and XML • Extensible Stylesheet Language

  7. XMLDirectives • Design goals for XML • XML implementation

  8. XHTML,XML and HTML • Extensible Hypertext Markup Language 1.0 • No tags

  9. W3C Oasis BizTalk XML.org Arbortext Microsoft XML Web Services IBM XML Zone Apache XML Project XMLDevelopment Organizations

  10. XML Parsersand Browsers • Parsers • Validating • Non-validating • Browsers • Mozilla • Microsoft Internet Explorer 6 • Opera • Netscape Navigator 7

  11. XML AloneIs Insufficient • No linking capability • No formatting capabilities • XML documents are abstract • EDI

  12. Implementing XML • XML schema • Development tools

  13. Benefitsof XML • One source • Management of metadata • Universal representation and meaning • Management of content • One to many • Database publishing

  14. 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

  15. Lesson 2:Well-FormedXML Documents

  16. 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

  17. What Is an XML Document? • HTML: The lazy developer’s dream • XML: The lazy developer’s nightmare

  18. Tags andElements in XML

  19. 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

  20. TagNesting

  21. DiscerningStructure • XML character strings • Character data • White space • The root (or document) element • Tree structure of a well-formed document

  22. TreeStructure

  23. Working withMixed Content • Creating a well-formed XML document from text • Adding comments to XML documents • XML encoding

  24. Balkanizationof the Web • Confusing assortment of tags resulting from numerous tagging schemes

  25. 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

  26. Lesson 3:Creating aValid XML Document

  27. 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

  28. Beyond Well-Formedness:Valid XML Documents • Valid conformance with a Document Type Definition • Rules that define the structure, syntax and vocabulary related to tags

  29. DocumentObject Model • Core Level 1 • HTML Level 1

  30. DocumentType Definition • The root element • Element type declarations • #PCDATA • Child elements • Element content • Mixed content • Empty elements

  31. Referencing DTDDefinitions in XML • DOCTYPE declaration • Internal DTD • External DTD

  32. DeclaringAttributes in a DTD • Attribute-list declarations • Commonly used attribute types • Entities • Parameter entities • Notation declarations

  33. Pre-Existing DTDs • XML/DTD repositories

  34. 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

  35. Lesson 4:XML Parsers

  36. Objectives • Explain the requirements for a parser • Identify the differences between validating and non-validating parsers • Use online parsers • Use command-line parsers

  37. Parsers • Also known as processors • Varying levels of conformance • Object-based parsers • Event-based parsers • Validating parsers • Non-validating parsers

  38. Command-LineParsing • Verifies document compliance with well-formedness requirements and DTD

  39. Summary • Explain the requirements for a parser • Identify the differences between validating and non-validating parsers • Use online parsers • Use command-line parsers

  40. Lesson 5:The XML Familyof Technologies

  41. 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

  42. TheXML Family • Namespaces in XML • XLink • XPath • XPointer

  43. Namespacesin XML • Namespace components • Explicit and implicit namespace declaration • Multiple namespaces • Inline namespace declaration • Namespace scope/inheritance • Namespaces and DTDs • Namespace attributes

  44. XPath • XML Path Language • XPath nodes • Document • Root • Element • Attribute • Text • Processing instruction • Namespace • Comment

  45. XPathExpressions • Operand • Location paths • Context node • Function calls • Predicate

  46. XLink • XML Linking Language • Simple links • Extended links • Locators • Arcs • Resources • Titles • Link behavior

  47. XPointer • Fragment identifier • Tracing a path • Shorthand notation • Shorthand syntax • Formal XPointer syntax • Range or portion selection

  48. XFormsand XML Query • XForms • New generation of forms introducing business logic, calculations, and form processing • XML Query • Based pm XML Infoset

  49. 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

  50. Lesson 6:XSL Transformation

More Related