The VisualFormat XML API provides a list of Visual Formats. |
The base URL of this API is http://api.cisp.com/VisualFormat.XML.asp. |
|
Name |
Description |
ClientID |
Client code identifying the client information to access |
ID |
ID of the visual format |
|
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 visual format |
Long |
TYPE |
Text for the type of input to display an item in |
String |
|
|
<?xml version="1.0" ?>
<ICOP>
- <VISUAL_FORMAT ID="0" TYPE="Text Box" />
- <VISUAL_FORMAT ID="1" TYPE="Check Box" />
- <VISUAL_FORMAT ID="2" TYPE="Select Box" />
</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/VisualFormat.XML.asp?ClientID=DEMO"
' 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("VisualFormat.xsl")
' Transform the xml with the xsl stylesheet and write the result HTML
Response.Write objXML.transformNode(objXSL)
%>
|