October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run ScanOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

What Is an XML Tag Set? Definition and Examples

An XML tag set is the vocabulary of names used by a document type or application. XML defines markup syntax; DTDs and schemas can define structural rules for those names.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An XML tag set is the collection of element and attribute names used by a particular kind of XML document, together with the conventions or formal rules for using them. XML itself does not provide one universal set of application tags: a document’s vocabulary supplies names such as book and title, while a DTD or schema can define how those names may be arranged.

What does “XML tag set” mean?

“XML tag set” is an informal term for an XML vocabulary: the element and attribute names available to a particular document type or application, plus the conventions for using those names. The W3C’s XHTML 2.0 glossary describes a vocabulary as a collection of element and attribute names, and distinguishes it from the grammar that prescribes their use (W3C XHTML 2.0 glossary).

As an Amazon Associate I earn from qualifying purchases.

For example, a book-catalog application might use book, title, and author. Those names belong to that application’s vocabulary; they are not universal XML keywords.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Does XML have a fixed set of tags?

No. XML defines the syntax for writing markup, but it does not dictate the application-level names or meanings of elements and attributes. The W3C XML 1.0 specification states: “This specification does not constrain the application semantics, use, or (beyond syntax) names of the element types and attributes,” with an exception reserving names beginning with any case combination of “XML” for standardization (W3C XML 1.0, Fifth Edition).

That means two XML applications can use different vocabularies while following the same XML syntax. The name title, for instance, has no built-in meaning to XML; an application or document definition determines what it represents.

How tags, elements, and names differ

  • Tag: The markup written in angle brackets. A start-tag begins a non-empty element, an end-tag closes it, and an empty-element tag expresses an element without a separate end-tag.
  • Element type name: The name carried in a tag, such as book or title.
  • Element: The logical structure identified by its tags. It can contain text, child elements, or both, depending on the document’s rules.
  • Attribute: A name-value detail written in a start-tag, such as id="b17".

For example, in <title>Example</title>, <title> is the start-tag, </title> is the end-tag, title is the element type name, and the element contains the text “Example.”

Rank #2
Sale
Learning XML, Second Edition
  • Used Book in Good Condition

How a DTD or schema defines the vocabulary’s rules

A vocabulary’s names do not by themselves specify which combinations are valid. A DTD can declare element types, attributes, and content models. A content model can constrain which child element types an element may contain, including their sequence or alternatives. Attribute-list declarations can specify an element’s attributes, their types, and default values. These rules make a particular vocabulary checkable by software; they do not create a universal catalog of XML names (W3C XML 1.0, section 3.2).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

XML Schema is another schema technology used to define constraints on XML documents. The key distinction is that the vocabulary provides the names, while a DTD or schema can express structural expectations for documents that use them.

Example: names versus rules

<book>
  <title>Example</title>
</book>

Here, book and title are vocabulary names selected for the application. XML syntax specifies how the tags are formed and nested. This snippet alone does not establish a formal vocabulary or prove that title is permitted inside book; a DTD or schema would need to state that rule.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Does every XML document need a DTD?

No. An XML document can be well-formed by following XML’s syntax without being validated against a DTD or schema. Well-formedness concerns whether the markup follows XML syntax; validation checks whether the document also satisfies a declared set of structural rules. A tag set may therefore be described by application conventions even when a document has no attached formal declaration.

Rank #4
Sale
XML For Dummies
  • Used Book in Good Condition

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.