/XMLBootstrap

XML and XML Schema Master

Primary LanguageJava

0. Overview

What is XML?

  • XML stands for eXtensible Markup Language.
  • XML was designed to store and transport data.
  • XML was designed to be both human- and machine-readable.
  • XML is often used for distributing data over the Internet.
  • XML is just information wrapped in tags
  • XML Does Not Use Predefined Tags
xml sample image

XML Simplifies Things

  • It simplifies data sharing.
  • It simplifies data transport.
  • It simplifies platform changes.
  • It simplifies data availability.

XML is Tree Structure: parent, child, sibling

XML tree structure sample image

1. References

2. XML Tutorial

  • XML Syntax

  • XML Schema

  • XML Elements

  • XML Attributes
    • There are no rules about when to use attributes or when to use elements in XML.
    • metadata (data about data) should be stored as attributes, and the data itself should be stored as elements.

  • XML Namesapce
    • Name conflicts in XML can easily be avoided using a name prefix.
    • The namespace can be defined by an xmlns attribute in the start tag of an element: xmlns:prefix="URI"

  • XML Display on Editor or Web browser

  • XML HttpRequest
    • The XMLHttpRequest object can be used to request data from a web server.
      • Update a web page without reloading the page
      • Request data from a server - after the page has loaded
      • Receive data from a server - after the page has loaded
      • Send data to a server - in the background

  • XML Parser
    • Before an XML document can be accessed, it must be loaded into an XML DOM object.
    • All modern browsers have a built-in XML parser that can convert text into an XML DOM object.
    • The XMLHttpRequest Object has a built in XML Parser.

  • XML DOM(Doument Object Model)
    • The XML DOM (Document Object Model) defines the properties and methods for accessing and editing XML.
    • "The W3C Document Object Model (DOM) is a platform and language-neutral interface that allows programs and scripts to dynamically access and update the content, structure, and style of a document."
  • XML DOM image
  • XPath

  • XSLT

  • XQuery

  • XLink and XPointer

  • XML Validator

  • XML DTD(Document Type Defintion)

  • XML Schema

  • XML on the Server

3. XML Schema Definition (XSD) Tutorial

4. Learn by Examples

6. Q/A