"ToXml" Function |
![]() ![]() ![]() |
ToXML function is used to convert the content of an ADOM to an XML string and assign to a pool variabe, a process record field or an ADOM node. Syntax: ToXML(adom-scope:adom-name, target-symbol)
adom-scope The scope of the ADOM. Values are "r" Request, "s" Session and "a" Application. adom-name The name of the ADOM. target-symbol The target symbol (a pool variable, a process record field or an ADOM node) that will contain the ADOM's content as XML string.
Note that only the sub nodes of the ADOM are converted to XML and therefore the name of the ADOM are excluded from it. Examples: ToXML(s:cart, v:cart) Convert the content of the session ADOM cart to XML and assign to pool variable cart. ToXML(r:orders, f:orders) Convert the content of the request ADOM orders to XML and assign to process record field orders. |