Appropriate granularity

When a document uses elements to isolate and identify every possible unit of information, it is said that the document has a fine granularity. In the following example, the name of the author is divided into the maximum number of useful sub-components:

					<name>
					<salutation>Dr.</salutation>
					<initial>J</initial>
					<last-name>Smith<last-name>
					</name>
				

When less than the optimum number of elements are used, the document is said to have a coarse granularity. The following example illustrates a person's name that could potentially be divided into smaller meaningful components (as shown above):

					<name>Dr. J. Smith</name>
				

The finer the granularity, the larger the document. When created manually, such documents are also more expensive ...

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.