XML is a human-readable, self-describing text format for cross-language messages. Its named elements and values let consumers select what they need and ignore the rest, making many schema changes backward-compatible. XML schemas specify document structure. XML messages can be verbose, and parsing large messages adds overhead; consider binary formats when efficiency and performance matter. section 8.1.6
Table 8.3 The benefits and drawbacks of text-based vs. binary formats for message payloads
|
Format |
Benefits |
Drawbacks |
|
Text |
|
|
|
Binary |
|
|
Compare the readability and self-description of text formats such as XML with the compactness and processing speed of binary formats. section 8.1.6





