Creating an HTML List

This section looks at how to create an HTML list from an XML source document.

The XML source document contains information about a series of reports produced for XMML.com. In this HTML Web page, you will choose to display only reports for which the year of the report is 2002. Listing 10.5 shows the source XML document.

Listing 10.5. XMMLReports.xml: Reports Presented to XMML.com
 <?xml version='1.0'?> <XMMLReports> <Report year="2000"> <Title>Sales Opportunities</Title> <Author>Peter Mallan</Author> <Summary>The opportunities for XML consultancy look good for 2001.</Summary> <Content> <!-- Main text would go here. --> </Content> </Report> <Report year="2001"> <Title>SVG - A Graphics Standard</Title> <Author>Pamela Askew</Author> ...

Get Sams Teach Yourself XML in 10 Minutes 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.