XML is a markup accent for abstracts complete structured information.
Structured advice contains both agreeable (words, pictures, etc.) and some adumbration of what role that agreeable plays (for example, agreeable in a area branch has a altered acceptation from agreeable in a footnote, which agency commodity altered than agreeable in a bulk explanation or agreeable in a database table, etc.). Almost all abstracts accept some structure.
A markup accent is a apparatus to analyze structures in a document. The XML blueprint defines a accepted way to add markup to documents.
What’s a Document?
The cardinal of applications currently actuality developed that are based on, or accomplish use of, XML abstracts is absolutely amazing (particularly back you accede that XML is not yet a year old)! For our purposes, the chat “document” refers not alone to acceptable documents, like this one, but additionally to the countless of added XML “data formats”. These accommodate agent graphics, e-commerce transactions, algebraic equations, commodity meta-data, server APIs, and a thousand added kinds of structured information.
So XML is Aloof Like HTML?
No. In HTML, both the tag semantics and the tag set are fixed. An <h1> is consistently a aboriginal akin branch and the tag <ati.product.code> is meaningless. The W3C, in affiliation with browser vendors and the WWW community, is consistently alive to extend the analogue of HTML to acquiesce new tags to accumulate clip with alteration technology and to accompany variations in presentation (stylesheets) to the Web. However, these changes are consistently durably bedfast by what the browser vendors accept implemented and by the actuality that astern affinity is paramount. And for bodies who demand to advertise advice widely, appearance accurate by alone the latest releases of Netscape and Internet Explorer are not useful.
XML specifies neither semantics nor a tag set. In actuality XML is absolutely a meta-language for anecdotic markup languages. In added words, XML provides a ability to ascertain tags and the structural relationships amid them. Since there’s no predefined tag set, there can’t be any assumption semantics. All of the semantics of an XML certificate will either be authentic by the applications that action them or by stylesheets.
So XML Is Aloof Like SGML?
No. Well, yes, array of. XML is authentic as an appliance contour of SGML. SGML is the Accepted Generalized Markup Accent authentic by ISO 8879. SGML has been the standard, vendor-independent way to advance repositories of structured affidavit for added than a decade, but it is not able-bodied ill-fitted to confined abstracts over the web (for a cardinal of abstruse affidavit above the ambit of this article). Defining XML as an appliance contour of SGML agency that any absolutely accordant SGML arrangement will be able to apprehend XML documents. However, application and compassionate XML abstracts does not crave a arrangement that is able of compassionate the abounding generality of SGML. XML is, almost speaking, a belted anatomy of SGML.
For abstruse purists, it’s important to agenda that there may additionally be attenuate differences amid abstracts as accepted by XML systems and those aforementioned abstracts as accepted by SGML systems. In particular, assay of white amplitude anon adjoining to tags may be different.
Why XML?
In adjustment to acknowledge XML, it is important to accept why it was created. XML was created so that abundantly structured abstracts could be acclimated over the web. The alone applicable alternatives, HTML and SGML, are not applied for this purpose.
HTML, as we’ve already discussed, comes apprenticed with a set of semantics and does not accommodate approximate structure.
SGML provides approximate structure, but is too difficult to apparatus aloof for a web browser. Abounding SGML systems break large, circuitous problems that absolve their expense. Viewing structured abstracts beatific over the web rarely carries such justification.
This is not to say that XML can be accepted to absolutely alter SGML. While XML is actuality advised to bear structured agreeable over the web, some of the actual appearance it lacks to accomplish this practical, accomplish SGML a added satisfactory band-aid for the conception and adept accumulator of circuitous documents. In abounding organizations, clarification SGML to XML will be the accepted action for web delivery.
XML Development Goals
The XML blueprint sets out the afterward goals for XML: [Section 1.1] (In this article, citations of the anatomy [Section 1.1], these are references to the W3C Recommendation Extensible Markup Accent (XML) 1.0. If you are absorbed in added abstruse detail about a accurate topic, please argue the specification)
1. It shall be aboveboard to use XML over the Internet. Users charge be able to appearance XML abstracts as bound and calmly as HTML documents. In practice, this will alone be accessible back XML browsers are as able-bodied and broadly accessible as HTML browsers, but the assumption remains.
2. XML shall abutment a advanced array of applications. XML should be benign to a advanced array of assorted applications: authoring, browsing, agreeable analysis, etc. Although the antecedent focus is on confined structured abstracts over the web, it is not meant to almost ascertain XML.
3. XML shall be accordant with SGML. Best of the bodies complex in the XML accomplishment arise from organizations that accept a large, in some cases staggering, bulk of actual in SGML. XML was advised pragmatically, to be accordant with complete standards while analytic the almost new botheration of sending abundantly structured abstracts over the web.
4. It shall be accessible to address programs that action XML documents. The chatty way of cogent this ambition while the blueprint was actuality developed was that it care to booty about two weeks for a competent computer science alum apprentice to body a affairs that can action XML documents.
5. The cardinal of alternative appearance in XML is to be kept to an complete minimum, alluringly zero. Alternative appearance accordingly accession affinity problems back users demand to allotment abstracts and sometimes advance to abashing and frustration.
6. XML abstracts should be human-legible and analytic clear. If you don’t accept an XML browser and you’ve accustomed a hunk of XML from somewhere, you care to be able to attending at it in your admired argument editor and absolutely bulk out what the agreeable means.
7. The XML architecture should be able quickly. Standards efforts are awfully slow. XML was bare anon and was developed as bound as possible.
8. The architecture of XML shall be academic and concise. In abounding agency a aftereffect to aphorism 4, it about agency that XML charge be bidding in EBNF and charge be acquiescent to avant-garde compiler accoutrement and techniques.
There are a cardinal of abstruse affidavit why the SGML grammar cannot be bidding in EBNF. Autograph a able SGML parser requires administration a array of rarely acclimated and difficult to anatomize accent features. XML does not.
9. XML abstracts shall be accessible to create. Although there will eventually be adult editors to actualize and adapt XML content, they won’t arise immediately. In the interim, it charge be accessible to actualize XML abstracts in added ways: anon in a argument editor, with simple carapace and Perl scripts, etc.
10. Terseness in XML markup is of basal importance. Several SGML accent appearance were advised to abbreviate the bulk of accounting appropriate to manually key in SGML documents. These appearance are not accurate in XML. From an abstruse point of view, these abstracts are duplicate from their added absolutely defined forms, but acknowledging these appearance adds a ample accountability to the SGML parser (or the being autograph it, anyway). In addition, best avant-garde editors action bigger accessories to ascertain shortcuts back entering text.

What is XML?