RAD Studio VCL Reference
|
Inserts or deletes the records corresponding to the data in an XML document.
function ApplyUpdates(const UpdateXML: string; const UpdateTransformFile: string; MaxErrors: Integer): Integer; virtual;
virtual __fastcall int ApplyUpdates(const AnsiString UpdateXML, const AnsiString UpdateTransformFile, int MaxErrors);
Call ApplyUpdates to transform an XML document into a delta packet that inserts or deletes all of the resulting records and send it to the associated provider so that it can be applied. Before you can call ApplyUpdates, you must define the transformation to use by setting properties on the XML transform component specified by TransformApplyUpdates.
UpdateXML is the XML document that can be transformed into a delta packet. Typically, it contains the contents of an XML document file.
UpdateTransformFile is the name of a transformation file that converts UpdateXML into an insert or delete delta packet. A transformation file is a special type of XML file with the .xtr extension. The transformation file is specific to a particular XML schema, data packet format, and update operation (insert or delete). Use the xmlmapper utility to create the transformation file.
ApplyUpdates returns the number of errors it encountered.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|