Ajax has changed web applications from stateless, page-based application into stateful, highly responsive ones. Developers use the XHR
object to load data and content from the server and update the state of the page by changing the HTML DOM. This is typical done
by retrieving data in the form of XML or JSON. Once on the client, the developer will
even if the developer uses a library such as jQuery, MooTools, ...
XAP has incorporated an XML syntax called xModify that can be used to create or update XML, XAL, and HTML elements declaratively. This means that developers can utilize server-side frameworks to create XML modify documents that an xModify Processor will use to update the HTML or XAL document.
Why is this Helpful?
xModify contains a set of operation that a developer would need to perform when manipulating a XML or HTML DOM.
Each of the operations contains a select attribute that is used to select a set of operations.
Append the children of the operation to the selected nodes
Create a clone of the selected nodes.
Insert the children of the operation after the selected nodes
Insert the children of the operation at a specific index of the selected nodes
Insert the children of the operation before the selected nodes
Remove an attribute from the selected nodes
Remove the selected nodes.
Replace the selected nodes with the children of the operation.
Replace the children of selected nodes with the children of the operation.
Change an attribute of the selected nodes.
Change the HTML of the selected nodes to be the children of the operation.
Embed XAL components of the operation into the selected nodes.