Site icon Embarcadero RAD Studio, Delphi, & C++Builder Blogs

Learn How To Populate A Database With Data Using An XML Document In This FireDAC Sample For Delphi

Note: The connection to the database does not require authentication.

How to Use the Sample

  1. Navigate to the location given above and open Project1.dproj.
  2. Press F9 or choose Run > Run.
  3. Click the Button1 button and the grid will be populated with data.
  4. Click the Button1 button again to deactivate the TFDQuery component and stop showing the data.

Files

FileContains
Demo\Project1.dprojContains the project itself.
Demo\Unit1.dfmContains the code of the main form.
Demo\Unit1.pasContains the main form and the main code.
FireDAC.Comp.VSE.pasContains the code for the VSE class used for parsing the XML document.
FireDAC.Comp.VSEXML.pasContains the code for the VSEXML class used for XPath.

Implementation

[crayon-670271b79d0e2204131722/]

If you want to check the original post with more information, refer to the link below:

http://docwiki.embarcadero.com/CodeExamples/Sydney/en/FireDAC.VSE_Demo_Sample

Exit mobile version