<?xml version="1.0" encoding="UTF-8"?>
<article>
  <title>The Curious Case of <em>Mixed Content</em> in XML</title>
  <paragraph>
    XML allows elements to contain a mixture of text and child elements,
    known as <term>mixed content</term>. For example,
    <person id="alan-turing">Alan Turing</person> proposed the
    <concept>Turing test</concept> in <year>1950</year>, building on earlier work
    by <person id="ada-lovelace">Ada Lovelace</person>.
  </paragraph>
  <paragraph>
    Whitespace handling in mixed content is <strong>tricky</strong>: parsers preserve
    significant whitespace between text and tags, but the
    <code>xml:space="preserve"</code> attribute can override defaults.
  </paragraph>
  <paragraph xml:space="preserve">    Leading and    trailing
    whitespace      is preserved here   <em>as well as</em>   inside <code>code blocks</code>.    </paragraph>
</article>
