Delphi Developer's Guide to XML
Chapter 22 - XML Data Binding

Previous   Next   Listings

Data binding extends the common DOM framework to provide "real-world" objects, complete with properties, that represent the data in your XML document. A wizard generates the binding for you, allowing you to almost forget that the data came from an XML document. You can both read and update the underlying XML through the binding.

DataBinding.bpg   The project group for the data binding applications
DataBindingRead.dpr   A custom XML viewer based on XML data binding objects
DataBindingReadU.pas
DataBindingReadU.dfm
   The main viewer form
DataBindingObjs.pas   The data binding interfaces and implementations
DataBindingWrite.dpr   An XML generator based on XML data binding objects
DataBindingWriteU.pas
DataBindingWriteU.dfm
   The main generator form
CommonXML.pas
CommonXML.dfm
   Database access and common XML constants for movie-watcher documents
movie-watcher.xml   The document to view
movie-watcher.xdb   Data binding definitions file

This example requires the "movie-watcher" BDE alias for the tables from Chapter 15.

Zipped Files (Delphi 6+)

Delphi Developer's Guide to XML 2003, Keith Wood Previous   Next   Listings