XML and ASP

ASP is one of Microsoft's Internet server-side technologies that lets you create Web documents on the fly. It runs on servers such as the Microsoft Internet Information Server (IIS). In this case, I'll search ch20_01.mdb for the names of the students and return them in an XML document like this, using <document> as the document element and <student> for each student:

<?xml version="1.0"?> 
<document>
    <student>
        Ann
    </student>
    <student>
        Mark
    </student>
    <student>
        Ed
    </student>
    <student>
        Frank
    </student>
    <student>
        Ted
    </student>
    <student>
        Mabel
    </student>
    <student>
        Ralph
    </student>
    <student>
        Tom
    </student>
</document>

The main trick in the .asp file is to make sure your code creates an XML document because the default document type is ...

Get Real World XML 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.