Pretty-printing
Do not pretty print XML (also known as format and indent
) because this can
result in unwanted white space characters appearing (line break and tab characters).
This document contains examples with indentation, but this is only for the purpose of clarifying the structure.
To help make the XML easier to read, and to make it easier to locate errors caught in the
validation process, insert line breaks before and after block-style elements. That is, between
elements where the parent element does not allow #PCDATA within its content
model (e.g. titleGroup, div[1-7,N], etc.).
Line break characters should not appear in any element which has #PCDATA
within its content model.