liveBook · Manning

Xml

As explained in Microservices Patterns, Second Edition

XML is a text-based markup language and data interchange format that represents structured information with elements and attributes.

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

  • Human-readable
  • Simple to process
  • Self descriptive
  • Verbose
  • Inefficient to process large messages

Binary

  • Compact
  • Fast to process
  • Requires more tooling
  • Not human-readable

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

How Microservices Patterns, Second Edition covers it

How deep it goes
Defines XML payload properties and schemas, and weighs compatibility benefits against verbosity and parsing costs.
What you can do after
Evaluate XML against binary formats by weighing readability and compatibility against verbosity and parsing overhead.
How it connects
Connects XML payloads to XML Schema, JSON, cross-language messaging, and binary-format trade-offs.

Also explained in

Compare how 6 books explain xml →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.