Mixed Content

  • An element is said to support mixed-content if it can contain both element and text node children.

    <test att="whatever">
      <parent att2="value">
      this parent has text <child>and element content</child> 
      so it is said to contain mixed content. 
      </parent>
    </test>
    				
  • Mixed content only makes sense for Documentation based XML; XML that is not supposed to be read by a machine but by a human.

Note

Processing XML would have been a lot easier if mixed-content was not allowed.