Description
Return name, literal value, and quote.
XML distinguishes element and attribute names, entity references, processing instructions, and document-level rules. Quoting, entity expansion, namespaces, and Unicode name characters are separate concerns. A restricted token recognizer does not automatically provide a complete or validating XML parser.
Return name, literal value, and quote.
When to use this tool
Use XML Attribute Equality Delimiter when you need the stated restricted XML token decomposition without parsing or expanding a document.
How to use the tool and how it works
- Enter token. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read name, value, quote. Use the output convention below.
Accept an ASCII attribute name followed by optional spaces/tabs, =, optional spaces/tabs, and a single- or double-quoted value excluding the matching quote and less-than sign. Return name, literal value, and quote.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| token | Complete literal token in the grammar stated above. | Required. Text; maximum UTF-16 length 8192. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| name | Name | Required. Text; maximum UTF-16 length 8192. |
| value | Value | Required. Text; maximum UTF-16 length 8192. |
| quote | Literal quote delimiter, or supplied quotation text where stated. | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"token": "id=\"abc\""
},
"output": {
"name": "id",
"value": "abc",
"quote": "\""
}
} Limitations and assumptions
- Entity references are preserved, not decoded, and whitespace is not normalized. The recognizer does not implement full Unicode XML names, namespace binding, entity validity, or every XML attribute constraint.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use an XML parser with appropriate document, namespace, character, and entity policies for complete validation. A local name or wrapper match does not replace those checks.
References
Similar or alternative tools
- XML Entity Reference Name Token
Return name and predefined for amp,lt,gt,apos,quot.
- XML Processing Instruction Target Token
Parse a processing instruction with an ASCII XML name subset and reject the reserved XML target.