O'Reilly logo

Real World XML by Steven Holzner

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

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

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