The serializer escaped only & < " in attribute values, so an attribute holding tab, newline, or carriage return would not survive a spec-compliant parser's attribute-value normalization. Match the libxml2 attribute escape table: emit 	 for the whitespace characters and > for >. Behavior derived from the libxml2 analysis (xmlsave.c / xmlIO.c escape tables), reimplemented in Swift; no upstream code copied. |
||
|---|---|---|
| .. | ||
| Emitting | ||
| Model | ||
| Parsing | ||
| Stream | ||
| Validation | ||
| API.swift | ||
| PureXML.swift | ||