← Back to catalogue
Published

XML

vr.tr.xml · thing-q2115

Enable an AI agent to recognise XML representations, assess their structural and interpretive state, and decide which inspection, validation, transformation or exchange operations are justified.

Thing Registry Information and virtual systems INF.MED

Bundle → Layer → Finding → Questions Filled

6 bundles · 11 layers · 18 findings · 31 questions

Syntax and document boundary Records what constitutes the XML input and whether its characters form an admissible document or fragment.

Input boundary and decoding

Identifies the input extent, representation form and evidence used to decode it.

Document or fragment context

Records whether the input stands alone or requires enclosing namespace, entity or structural context.

  1. Is the input a complete XML document or a fragment, and what establishes its boundaries? boundary
  2. What XML version and character encoding apply, and do the declaration, byte evidence and transport metadata agree? measurement

Well-formedness

Separates successful XML syntax assessment from incomplete processing and vocabulary validation.

Syntax assessment evidence

Records the parser outcome, configuration and locations of structural or character errors.

  1. Does the input satisfy the applicable XML well-formedness rules, including nesting, attribute uniqueness and reference syntax? measurement
  2. Which parser, configuration and input extent support that assessment, and did processing reach the end? provenance
Names and content structure Captures XML name identity and the ordered combination of markup and character content.

Namespace bindings

Distinguishes local names, namespace names and scoped prefix aliases.

Expanded name identity

Records expanded names and the context needed to interpret prefixes in markup or vocabulary-defined values.

  1. What are the expanded names of relevant elements and attributes, accounting for the fact that a default namespace does not apply to unprefixed attribute names? definition
  2. Which attribute or text values represent qualified names under the vocabulary's rules, and which in-scope bindings interpret them? boundary

Ordered and mixed content

Records element nesting, attributes and text in the order needed for faithful interpretation.

Content and whitespace significance

Identifies where text, child order and whitespace must survive processing.

  1. Which elements contain mixed text and child elements, and what ordering must an extraction or edit preserve? measurement
  2. What evidence from xml:space, constraints or vocabulary rules permits whitespace to be preserved, normalised or removed? action
Constraints and vocabulary contract Connects the XML representation to identified structural constraints and vocabulary interpretation.

Constraint authority

Identifies the governing constraint resources and distinguishes authority from document-supplied hints.

Governing DTD or schema

Records the selected constraint language, resource version and basis for selection.

  1. Which DTD, XML Schema, RELAX NG schema or other constraint set governs this use, and how was its authority established? provenance
  2. Are DOCTYPE identifiers or schema-location hints accepted, overridden or ignored by the consuming system? action

Validation and interpretation

Records validation results and the boundary between checked structure and application meaning.

Qualified conformance result

Associates diagnostics and processing effects with a specific constraint set and run.

  1. What validation result and diagnostics were obtained against the identified constraint versions? measurement
  2. Which defaults, normalisations or type annotations did processing contribute to the representation available to the agent? provenance
  3. Which vocabulary meanings or business rules remain unchecked even if validation succeeds? boundary
Dependencies and processing limits Records XML resource resolution, expansion behaviour and limits on parser work.

Resource resolution

Identifies resources that particular processing stages may request and how their locations are resolved.

External resource dependency map

Separates parser dependencies from optional inclusion, validation and transformation resources.

  1. Which external DTDs or entities are referenced, and which additional resources would enabled schema validation, XInclude or transformation stages request? measurement
  2. What base URI, applicable xml:base values, resolver rules or catalog mappings determine the effective resource locations? provenance
  3. Which resources may be accessed, and what result is required when a dependency is unavailable or refused? action

Expansion and resource budgets

Captures entity handling and processing budgets needed to assess whether an operation can complete acceptably.

Bounded parser execution

Records configured controls and distinguishes limit-triggered termination from a proven syntax failure.

  1. Are DOCTYPE processing, external entity resolution and entity expansion enabled for this operation? action
  2. What limits apply to nesting depth, expanded content size, input size and processing time, and were any reached? measurement
Operations and preservation Defines how XML may be selected, changed and serialised while retaining the properties required by its use.

Selection and transformation

Records the context and assumptions under which XML queries and edits target the intended content.

Namespace-aware operation contract

Specifies selection context, transformation dependencies and required postconditions.

  1. What query or transformation language version, context node and namespace bindings identify the intended nodes? definition
  2. Which content may be changed, and what well-formedness, validation and vocabulary-specific checks must pass afterward? action

Serialisation and equivalence

Distinguishes exact representation preservation from tree-level or application-defined equivalence.

Round-trip preservation contract

Records whether lexical choices, comments, processing instructions and signed content constrain output.

  1. Must a round trip preserve exact bytes, prefixes, CDATA boundaries, entity spelling, comments or processing instructions, or only specified tree properties? boundary
  2. If comparison or signature verification uses canonicalisation, which algorithm, options and selected content govern the result? definition
  3. Which serialisation or formatting changes are permitted, and how will the required equivalence be checked? action
Evidence and external alignment What the world already says about this thing, gathered so the model can be checked against it.

Reported evidence

Findings from the breadth pass, kept separate from the structural claims.

Kinds and varieties

Reported by the breadth pass; each item needs checking against its source before it becomes normative.

  1. Which of these kinds and varieties hold for the sense of XML this model covers, and on what evidence? provenance

Identifiers and schemes

Reported by the breadth pass; each item needs checking against its source before it becomes normative.

  1. Which of these identifiers and schemes hold for the sense of XML this model covers, and on what evidence? provenance

Standards and regulation

Reported by the breadth pass; each item needs checking against its source before it becomes normative.

  1. Which of these standards and regulation hold for the sense of XML this model covers, and on what evidence? provenance

Real-world use

Reported by the breadth pass; each item needs checking against its source before it becomes normative.

  1. Which of these real-world use hold for the sense of XML this model covers, and on what evidence? provenance

Typical measurements

Reported by the breadth pass; each item needs checking against its source before it becomes normative.

  1. Which of these typical measurements hold for the sense of XML this model covers, and on what evidence? provenance

Failure modes and hazards

Reported by the breadth pass; each item needs checking against its source before it becomes normative.

  1. Which of these failure modes and hazards hold for the sense of XML this model covers, and on what evidence? provenance

Regional variation

Reported by the breadth pass; each item needs checking against its source before it becomes normative.

  1. Which of these regional variation hold for the sense of XML this model covers, and on what evidence? provenance

Neighbouring kinds and how to tell them apart

Reported by the breadth pass; each item needs checking against its source before it becomes normative.

  1. Which of these neighbouring kinds and how to tell them apart hold for the sense of XML this model covers, and on what evidence? provenance

Classifiers Filled

Family
Thing Registry
Category
Information and virtual systems
Entry kind
thing
Plane
INF
Domain
INF.MED
Other names and narrower kinds
TEI/XML, Cursor on Target

What it is Filled

XML (Extensible Markup Language) is a W3C-standardized, SGML-derived metalanguage that serializes hierarchical documents and data as Unicode text under a single well-formedness grammar of nested tagged elements, attributes, character data and optional validity constraints (DTD or schema).

In scope

  • XML document or fragment boundaries, declared version, encoding and well-formedness
  • Elements, attributes, ordered content, text and namespace-qualified names
  • DOCTYPE declarations, entity references and external resource dependencies
  • Validation against identified DTDs or schemas and the limits of that validation
  • Parsing, querying, transformation, serialisation and XML-specific preservation requirements
  • Processing restrictions needed to handle untrusted or dependency-bearing XML

Out of scope

  • Business meaning and operational rules of XML vocabularies such as invoice or scientific data formats
  • The complete models of XML Schema, XPath, XSLT and other associated languages
  • Parser software installation, implementation internals and service operations
  • Transport protocols, storage systems and access-control infrastructure
  • HTML parsing and recovery rules for documents processed as HTML
  • General cryptographic signature and identity models

Why it exists Filled

Enable an AI agent to recognise XML representations, assess their structural and interpretive state, and decide which inspection, validation, transformation or exchange operations are justified.

Distinguishing features Filled

  • Check whether the representation satisfies XML well-formedness rules, including case-sensitive names, properly nested elements and quoted attribute values; visual resemblance to markup is insufficient.
  • Distinguish a complete XML document, which has one document element, from a fragment containing multiple elements or text that requires a processing context.
  • Determine whether content is processed with XML or HTML parsing rules; an HTML-like vocabulary or an XHTML namespace alone does not establish the processing mode.
  • Check whether identity and order depend on expanded element names, attributes and mixed text content, rather than treating the representation as interchangeable with a JSON object.
  • Distinguish XML well-formedness from conformance to an identified DTD or schema; successful parsing alone does not establish vocabulary validity.

What robots and AI may and may not do Filled

Must not

  • Parse untrusted XML with external entity resolution enabled where it can expose files or systems.
  • Silently drop or alter elements, attributes or namespaces during conversion.
  • Present a malformed document as valid.
  • Overwrite shared configuration or data files in XML without a backup.

Only with a human decision

  • Changing XML schemas or configuration files that other systems depend on.

May

  • Parse, validate and generate XML documents it is authorized to handle.
  • Check documents against a declared schema and report well-formedness errors.
  • Convert XML to other formats while preserving its content and encoding.

Moral aspects Filled

  • XML carries records such as contracts, health and government data; silent corruption harms the people in them.
  • Open, documented formats keep data accessible to everyone over time.

Who is affected

  • Users of the data
  • Developers and integrators
  • People described in records

Owners Filled

Steward

Nobody owns the format; the web standards consortium maintains the specification.

Links to other meta-models Filled

parent

  • Q37045 - registry parent class

What else AI and robots need to interact with it Filled

Identity and identifiers required Filled

  • Vercy registry: vr.tr.xml
  • Wikidata: Q2115 (https://www.wikidata.org/wiki/Q2115)

Direct properties not applicable Not applicable

  • Representation boundary: complete document | fragment | unresolved
  • XML version: 1.0 | 1.1 | unresolved, with declared and effective values distinguished
  • Encoding evidence: relationships among byte encoding, byte-order mark, XML declaration and transport metadata
  • Well-formedness assessment: not assessed | well-formed | not well-formed | assessment incomplete
  • Namespace identity: prefix bindings and expanded names expressed as namespace name plus local name
  • Content form: empty | text-only | element-only | mixed, recorded per element
  • Validation assessment: not assessed | valid | invalid | indeterminate, relative to an identified constraint set and processor configuration
  • External dependencies: referenced DTDs, entities, schemas and processing resources, with resolution status
  • Maximum element depth: nested element levels, with the document element counted as level 1
  • Preservation requirement: exact bytes | specified lexical features | specified tree properties | vocabulary-defined meaning

Plane INF: no invented physical properties.

Recognition optional Filled

  • Text with nested tags in angle brackets, opened and closed in matching pairs.
  • Files often beginning with an XML declaration naming the version and encoding.

Capabilities and actions required Filled

  • Parse a document or context-qualified fragment and report XML errors with locations.
  • Inspect ordered content and select nodes using explicit namespace bindings.
  • Validate against an identified, authorised DTD or schema and record diagnostics.
  • Resolve or refuse external dependencies under an explicit processing policy.
  • Transform or serialise XML while checking declared preservation requirements.
  • Compare versions using byte, lexical, tree or vocabulary-aware criteria chosen for the task.

Hazards and failure modes required Filled

  • Unsafe parsers can be exploited through external entities or entity expansion.
  • Encoding mismatches corrupt characters and break data exchange.

Standards and interfaces required Filled

  • Extensible Markup Language (XML) 1.0, World Wide Web Consortium.

Context of use required Filled

  • XML is used to represent structured documents and data for storage, exchange, and automated processing.
  • It is encountered in configuration files, document formats, publishing workflows, and messages exchanged between software systems.
  • Schemas and related validation mechanisms let participants check whether a document follows an agreed structure.

Sources Filled

  1. Extensible Markup Language (XML) 1.0 (Fifth Edition) - Normative grammar of well-formedness, DTDs, encodings, entities and the XML 1.0 document type
  2. Extensible Markup Language (XML) 1.1 (Second Edition) - The 1.1 edition, including additional name characters and NEL, and why it is a separate kind
  3. Namespaces in XML 1.0 (Third Edition) - Qualified names, xmlns declarations, and namespaced versus non-namespaced XML
  4. XML Media Types (RFC 7303) - IANA media types application/xml and text/xml, charset handling, and fragment identifiers
  5. Wikidata item Q2115: XML - identity and sense of the item
  6. Wikipedia: XML - general description of the item

Open questions

  • Does the registry intend XML to cover the format, individual XML artifacts and fragments together, or should artifact instances link to a separately registered document model?
  • Which XML and Namespaces in XML editions must the catalogue support, including any requirement for XML 1.1?
  • Which processing features and constraint languages are required in the intended agent environment, and which remain optional extensions?
  • What default resource-resolution and processing-limit policy applies when XML arrives without a declared processing contract?
  • Which neighbouring registered models own vocabulary semantics, XML canonicalisation and XML signatures, and how should this model link to them?

Machine files

Provenance

thing registry research (pass 2) · unreviewed

Built from: models/things/publications/thing-q2115/spec.json