---
id: "xml_text"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["software"]
langs: ["common"]
quality: 65
url: "https://registry.apicrafter.io/datatype/xml_text"
---

# XML document in a text field (`xml_text`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

XML element or document stored as text in one field, such as the schema of a SharePoint content type (SchemaXml): <ContentType ID="0x" Name="Item">...</ContentType>.

- Personal data (PII): no
- Categories: Software development (software)
- Countries: global
- Languages: Common to most languages (common)

## Examples

- `<ContentType ID="0x" Name="Item"><Fields /></ContentType>`
- `<item id="1"/>`
- `<ContentType ID="0x">` (invalid example) — Element not closed

## Metacrafter rules

1 rules: 0 match the field name, 1 match values.

- `xmltextbyvalue` (data, `common/software.yaml`)

## Supported by tools

- `metacrafter`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/XML>

## Quality

Score 65/100. Missing: regexp, mapping (Wikidata, Schema.org, ...), translation.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/xml_text.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/software/xml_text.yaml>
