Whitespace in markup

Within markup, all whitespace is equivalent to a single space character, and may be used to separate attributes and other parameters. The two examples below are deemed to be equivalent:

<book issue="3" date="15/3/97" >


<book
issue    = "3"
date     = "15/3/97"   >

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.