xmlGetResource (server-side)

Use this routine to retrieve an XML DOM object that contains the contents of the specified XML file, potentially cached in the Application object during a prior invocation.

Definition

function xmlGetResource(byRef sResourceName,
                        byRef sResourceFile)

Parameters

  • sResourceName
    A string containing the name of an Application object variable under which the contents of the file will be cached as an XML DOM object, or through which the previously cached XML DOM object will be retrieved from the Application object.
  • sResourceFile
    A string containing the name of the file from which the XML DOM object will be loaded, in the event that it is not already cached in the Application object.

Return Value

An XML DOMDocument object (ProgID: Microsoft.FreeThreadedXMLDOM) containing the contents of the specified file, potentially cached in the Application object during a prior invocation.

Remarks

This routine is used by the routines xmlGetCurrencies and xmlGetLanguages to load and cache the contents of the XML files config\currencies.xml and config\languages.xml, respectively. It is general purpose in nature, and could be used to load and cache the contents of arbitrary XML files.

This routine is available in the include file ASPUtil.asp.

See Also

Server-Side Routines

xmlGetCurrencies (server-side)

xmlGetLanguages (server-side)

Client-Side Routines

Copyright © 2005 Microsoft Corporation.
All rights reserved.