iASP_XMLDOM Component

The iASP_XMLDOM component is a group of XML DOM programming objects that are compatible with Microsoft XML DOM objects. For detailed usage information, please refer to the Microsoft documentation. To use the iASP_XMLDOM, you must first download the Oracle XML parser for Java2 and add xmlparserv2.jar and iasp_xmldom.jar to the classpath statements in your iASP start_server.sh script.

The simple example below illustrates the usage of 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-2002, Halcyon Software Inc. All rights reserved.