| The Country XML API provides a list of Countries. |
| The base URL of this API is http://api.cisp.com/Country.XML.asp. |
| |
| Name |
Description |
| ClientID |
Client code identifying the client information to access |
| ID |
ID of the country |
|
| Name |
Min |
Max |
Type |
Required |
| ClientID |
4 |
4 |
String |
True |
| ID |
1 |
3 |
Long |
False |
|
| |
| The return value is a standard XML document with ICOP as the root node. |
| Each section of the output variables listed below is a child node to the ICOP node. Each parameter within that section is an attribute to that section's node. |
| Name |
Description |
Type |
| ID |
ID of the country |
Long |
| LABEL |
Text label for the country |
String |
|
| |
<?xml version="1.0" ?>
<ICOP>
- <COUNTRY ID="1" LABEL="United States" />
</ICOP>
|
| |
<%
Option Explicit
Dim objXML, objXSL
' Create the MSXML DOMDocument object for the xml document output of the API
Set objXML = Server.CreateObject("MSXML2.DOMDocument")
objXML.async = False
objXML.setProperty "ServerHTTPRequest", True
objXML.load "http://api.cisp.cc/Country.XML.asp?ClientID=DEMO&ID=1"
' Create the MSXML DOMDocument object for the xsl stylesheet to transform the xml
Set objXSL = Server.CreateObject("MSXML2.DOMDocument")
objXSL.async = False
objXSL.load Server.MapPath("Country.xsl")
' Transform the xml with the xsl stylesheet and write the result HTML
Response.Write objXML.transformNode(objXSL)
%>
|