XML Tutorial Basics For Beginners


You might be thinking to learn XML and wondering how and where to begun? and maybe even why! For starters it is a core form of web development for today. It is pervasive, it is used widely in today’s popular sites like YouTube, Twitter, Facebook, Google, IBM, WordPress, NY times, CNN, Hulu etc. It is and evergreen technology, that drives open standards and open development. This work with many technologies which you may familiar with maybe from Web 2.0, Ajax, and Web Services.

EXTENSIBLE MARKUP LANGUAGE

  • Helps information systems share structured data
  • A meta language that gives meaning to data that other applications can use
  • Application and platform independent
  • Allows various types of data
  • Extensible to accommodate new tags and processing methods
  • Allows user defined tags

ADVANTAGES

  • Simpler version of Standard Generalized Markup Language (SGML)
  • Easy to understand and read
  • Supported by a large number of platforms
  • Used across open standards which are available today

COMPARISON BETWEEN HTML AND XML

COMPARISON BETWEEN HTML AND XML

There is an expandable hierarchy tree structure with attributes, but unlike HTML which is a presentation layer. But in XML we are not mentioning any style information in here.

COMPONENTS

  • Declaration
  • Tags
  • Elements
  • Attributes
  • Comments

DECLARATION:

Declaration is an first line document, provides information to the parser. It is recommended, but optional. It contains three name-value pairs:
  1. Version (Common)
  2. Encoding (Default UTF-8)
  3. Standalone (Rare)

TAGS:

  • Text in between <and>
  • Have start tag and end tag
  • Tags and data stored together
  • Data is sled-descriptive and easy to understand

ATTRIBUTES:

  • Provide additional information about the elements
  • Name-value pairs:
– Single or double quotes to encode values
– Attribute names are unique within the same element


COMMENTS:

  • Appear anywhere in document
            start tag <!–
            end tag –!>
  • Contents inside comment are not parsed

STANDARDS

  • Schema
  • Parsers
  • Editors
  • Standards

SCHEMA

  • Describe the structure and content of an XML document
  • Define a shared vocabulary for applications
  • Can be expressed using XML schema languages such as:
    – Document Type Definition(DTD)
    – XML schema (W3C)

INDUSTRY STANDARDS AND DATA EXCHANGE:

Organizations and as well entire industries have standardized the XML schema to promote the exchange of data. They are continually evolving the schema to meet business needs.

These fields include Insurance, Finance, Retail, Healthcare, Telecommunications, Chemical and Petroleum, etc. For authoring, maintaining, publishing and documentation.

PARSERS

  • Read and process the content of an XML document
  • Include push and pull parsers
    – Pull Parsers: The events generated by the application
    – Push Parsers: The events controlled by the parser

  • Many free XML parsers available, including tools from IBM

EDITORS

  • Can save time and minimize coding by providing visual features to perform.
  • Text and graphical editors facilitate editing the code

BENEFITS OF USING EDITORS:

  • Reduce coding effort
  • Provide visual features to perform tasks easily

STANDARDS

The key organizations have established the set of standards:

  • Various types of standards – Core standards from the basis of what is expressed in an XML document – Processing standards relate to XML processing by developers – Key vocabularies (applications)
  • XML standards influences include the W3C, ISO and OASIS

XML & WEB 2.0

XML is essential to web development today as a foundation technology for many web2.0 technologies and techniques including RSS, ATOM and Ajax.

XML provides a platform for organizing and integrating user-generated content, including blogs, wikis, forums, etc.

XML AND OTHER WEB SERVICES

Besides end-user applications and services exist also important in web services, that run behind the scenes from simple functions to complex business processes.

It’s important in back end web services, from simple function to complex business processes. It also provides a framework for creating specialized languages for complex interactions between clients and services, such as:
  • SOAP
  • WSDL

SUMMARY

As web 2.0 becomes even more popular the ability to create successful new services and products can rely on important tools and skills such as XML a key technology underlying much of what we call web 2.0 sites today from Social Networking, Blogging, Wikis, RSS and add in features.

Comments

Popular posts from this blog

Online Advertising – How To Guide

Copywriting (SEO) Tips For Online Advertising