|
''Load'' Function |
|
|
Load function is used to load an XML file to an ADOM. If the specified ADOM already exists it is cleared before loading new nodes into it. Syntax: Load(adom-scope:adom-name, file-name)
adom-scope The scope of the ADOM. Values are "r" Request, "s" Session and "a" Application. adom-name The name of the ADOM. file-name The name of the file to load to the ADOM. It can be defined relative to the web application's root directory Examples: Load(s:cart, 'cart.xml') Load the content of the session ADOM cart from XML file {WEB_APPLICATION_DIR}\cart.xml. Load(s:cart, 'doc/' + /mor_security_userinfo_main.username + '/cart.xml') Load the file {WEB_APPLICATION_ROOT}/doc/user1/cart.xml to the session ADOM cart. The name of the current user is assumed to be "user1". |