Resource: contacts.xml
The following XML data file contains two contact entries, each with a name and phone number.
XML Data File (contacts.xml)
<?xml version="1.0"?> <contacts> <contact> <name>John Doe</name> <phone>123-456-7890</phone> </contact> <contact> <name>Jane Doe</name> <phone>123-456-7891</phone> </contact> </contacts>
To add contacts.xml to the XMLOverHTTP project
- Create an empty text file in the directory you created to correspond to your virtual directory (for example, c:\XMLOverHTTP, corresponding localhost/sxh). Name the text file contacts.xml.
- Copy the resource listing above, and paste it into the XML file you just created.
Next, we'll create an ASP page to handle the request.