Overview |
iASP XMLDOM component is a group of XML DOM programming objects, it is compatible with Microsoft XML DOM objects. please reference to Microsoft XML SDK Documentation to get the usage of it. iASP XMLDOM is base on the Oracle's XML parser for java v2, so you must download it form Oracle and set xmlparserv2.jar to the classpath environment variable of the startup script file which will be used to start a server to run iASP Servlet engine. Following is a simple example about how to use the iASP_XMLDOM component:
xmlpage.asp:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
</HEAD>
<BODY>
<%@ Language=VBScript %>
<%
Dim xmldoc,Header1
set xmldoc = Server.CreateObject("Microsoft.XMLDOM")
xmldoc.async=false
xmldoc.load(Server.MapPath("Punch.xml"))
set Header1 = xmldoc.getElementsByTagName("Header").Item(0)
fromuser = Header1.getElementsByTagName("From").Item(0).firstChild.Text
touser = Header1.getElementsByTagName("To").Item(0).firstChild.Text
Response.Write "<B>" & "Values taken from the XML Document" & "</B>" & "<BR>"& "<BR>"
Response.Write "From User is " &fromuser & "<BR>"
Response.Write "To User is " &touser
%>
</BODY>
</HTML>
Punch.xml:
<?xml version="1.0" encoding="UTF-8"?>
<XML version="1.0" payloadID="1233444@xyz.com"
timestamp="2000-04-12T18:39:09-08:00">
<Header>
<From>
<Credential domain="AribaNetworkUserId">
<Identity>admin@abc.com</Identity>
</Credential>
</From>
<To>
<Credential domain="DUNS">
<Identity>012345678</Identity>
</Credential>
</To>
<Sender>
<Credential domain="AribaNetworkUserId">
<Identity>admin@xyz.com</Identity>
<SharedSecret>welcome</SharedSecret>
</Credential>
<UserAgent>Ariba ORMS 6.1</UserAgent>
</Sender>
</Header>
</XML>
If you require technical support please send complete details about the problem you are having to support@halcyonsoft.com.
Copyright © 1998-2000, Halcyon Software Inc. All rights reserved.