"Load" Function |
![]() ![]() ![]() |
Load function is used to load an XML file to an ADOM. 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 Load(s:cart, 'cart.xml') Load the content of the session ADOM cart from XML file {WEB_APPLICATION_DIR}\cart.xml. Load(s:cart, '/usr/tmp/' + mor.Security.userName() + '/cart.xml') Load the content of the session ADOM cart from XML file /usr/tmp/user1/cart.xml. The name of the current user is assumed to be 'user1'. |