June 2008
Intermediate to advanced
986 pages
27h 8m
English
One of the challenges of working with any XML document is processing whitespace, especially when want want to generate output other than HTML. As we noted earlier, an HTML browser renders both of these paragraphs the same way:
<p> This document contains 5 chapters. </p> <p>This document contains 5 chapters.</p>
If we generated these two paragraphs as text, however, they would appear as differently in print as they do in the HTML source. We’ll look at several techniques for controlling whitespace in this section.
Read now
Unlock full access