Why a parser? And the difference between SGML and XML

Why a parser? And the difference between SGML and XML

What is the need for parser? What is the difference between SGML and XML?

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

An XML document has defined elements and attributes. A parser exposes them to your application so you don't need to write code to break scan the tags and retrieve individual attributes.

WhatIs.com SGML defines SGML this way:

SGML (Standard Generalized Markup Language) is a standard for how to specify a document markup language or tag set. Such a specification is itself a document type definition (DTD). SGML is not in itself a document language, but a description of how to specify one. It is metadata.
XML, like HTML, is a SGML-based language. XML is extensible because the markup symbols are unlimited and self-defining.

This was first published in April 2004