Saturday, 31 March 2012

Key terminology

The actual in this area is based on the XML Specification. This is not an all-embracing account of all the constructs which arise in XML; it provides an addition to the key constructs a lot of generally encountered in circadian use.

(Unicode) Character

By definition, an XML certificate is a cord of characters. Almost every acknowledged Unicode appearance may arise in an XML document.

Processor and Application

The processor analyzes the markup and passes structured advice to an application. The blueprint places requirements on what an XML processor have to do and not do, but the appliance is alfresco its scope. The processor (as the blueprint calls it) is generally referred to colloquially as an XML parser.

Markup and Content

The characters which accomplish up an XML certificate are disconnected into markup and content. Markup and agreeable may be acclaimed by the appliance of simple syntactic rules. All strings which aggregate markup either activate with the appearance < and end with a >, or activate with the appearance & and end with a ;. Strings of characters which are not markup are content.

Tag

A markup assemble that begins with < and ends with >. Tags appear in three flavors:

start-tags; for example:

end-tags; for example:

empty-element tags; for example:

Element

A analytic certificate basic either begins with a start-tag and ends with a analogous end-tag or consists alone of an empty-element tag. The characters amid the start- and end-tags, if any, are the element's content, and may accommodate markup, including added elements, which are alleged adolescent elements. An archetype of an aspect is Hello, world. (see accost world). Another is .

Attribute

A markup assemble consisting of a name/value brace that exists aural a start-tag or empty-element tag. In the archetype (below) the aspect img has two attributes, src and alt: Foligno Madonna, by Raphael. Another archetype would be Connect A to B. area the name of the aspect is "number" and the amount is "3".

No comments:

Post a Comment