1. Modify Instances Using Mutator Functions This page last changed on Apr 07, 2008. .stickable, h1, h2, h3, h4, h5 false true Show Sticky notes Hide Sticky notes sticky_configuringtheldapserverinformation sticky_associatingcustomconditionallogicwithfunctions sticky_aldspapplicationdevelopmentbestpractices sticky_configuringthesampleapplicationtousetheembeddedldapserver sticky_acloserlook Save Cancel edocs Home > BEA AquaLogic Data Services Platform 3.0/3.2 Documentation > ALDSP 3.2 New Features Documentation # Modify Instances Using Mutator Functions This topic describes how to use the mutator functions to create and modify XXDM instances from within XQuery and XQuery Scripting Extensions (XQSE) programs. Using the Mutator Functions See Also ## Using the Mutator Functions To use the mutator functions, do the following: Identify the element you need to change and promote the element to an unmodified changed-element using the `changed-element()` function. For example, the following call declares $co to be an unmodified changed-element of type orders for the element represented by $o.
       declare $co as changed-element(orders) := changed-element($o);
2. - Modify the changed-element using the mutator functions. To insert a node into an XXDM instance (changed-element) at a specified XPath location, use the `fn-bea:insert-into()` function. To delete a node at a specified XPath location in an XXDM instance, use the `fn-bea:delete()` function. To replace the value of a node in an XXDM instance at a specified XPath location, use the `fn-bea:replace-value()` function.
     | See Mutator Functions for a detailed description of each of the mutator functions.
## See Also ##### Concepts Mutators for Updates Mutator Function Examples ##### Reference Mutator Functions

Document generated by Confluence on Nov 26, 2008 13:06