O'Reilly logo

Sams Teach Yourself XML in 10 Minutes by Andrew H. Watt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required