Converting Our Content to XML

The nice thing about all this is that by using CSS2 properties for our elements, we can completely control how they're displayed—to the extent that it's supported by the browser, of course.

But in all of this talk about presentation, the structure of the content is getting lost. Sure, a human can look at the page and pick out the meaning of each item, but to a computer, the vendor name is no different from the body of the advertisement; they're both just text to be displayed.

One <p> is just like the others, and the fact that text is enclosed in <b></b> tags means nothing, structurally.

Fortunately, all this control has given us an advantage: Because we're determining the presentation using properties anyway, there's ...

Get XML and Java™ from scratch 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.