Chapter 8. Whitespace issues

Spaces and line-end codes are sometimes important characters in the document, and at other times are used simply to lay out XML tags. Within the document, a consecutive series of whitespace characters may be significant, or unimportant and expected to be reduced to a single space. This chapter describes an XML mechanism for preserving all space, explains how related standards cope with identifying significant document spaces, and concludes with suggestions for default handling of ambiguous spaces in XML documents.

Get XML Companion, The, Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.