Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cloudevents/working-drafts/xml-format.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,13 @@ An XML element representing a core context attribute MAY be decorated with
an `xsi:type` XML attribute. If present, this designator MUST match that of the type specified
by the [CloudEvent context attributes][ce-attrs].

An XML element representing a context attribute MUST NOT contain any child elements.
An XML element representing a context attribute MUST NOT contain any child elements. The text
within an XML element representing a context attribute MUST NOT contain any line breaks.
When processing the text, the attribute value MUST be parsed without discarding any other
whitespace. (For example, `<myextension xsi:type="ce:string"> text </myextension>` represents
an extension attribute value with leading and trailing whitespace, whereas
`<myextension xsi:type="ce:integer"> 10 </myextension>` is invalid as the textual representation
of an Integer attribute never contains whitespace.)

No other XML element attributes are expected, if present they MUST be ignored during
processing.
Expand Down