Web Serv Xe8 Delphi
Web Serv Xe8 Delphi
Delphi XE8
XML and SOAP
Web Services
for Windows (plus Mac and Mobile clients)
Table of Contents
1. XML Programming 1
XML................................................................................................. 1
XML Elements and Attributes..................................................... 2
XML Namespaces..................................................................... 2
XML Schema ........................................................................... 2
Generating XML Schemas ......................................................... 3
Validating XML Schemas ........................................................... 6
TXMLDocument ................................................................................. 6
IDOMDocument vs. IXMLDocument ............................................ 9
TXMLDocument Programming ............................................................. 10
XML FireMonkey TreeView......................................................... 15
TXMLDocument on Mac OS X .................................................... 17
Deployment .................................................................... 18
TXMLDocument on iOS ............................................................. 19
TXMLDocument on Android ....................................................... 21
XML VCL TreeView ................................................................... 23
TXMLDocument as Windows Service........................................... 25
XML Data Binding .............................................................................. 27
Generated Code ...................................................................... 31
Delphi XML Mapper ............................................................................ 35
The XML Mapping Tool.............................................................. 35
Selecting Nodes ...................................................................... 36
Create and Test Transformation................................................. 38
XMLTransform......................................................................... 40
XML Mapping on OS X .............................................................. 44
XML Mapping on iOS and Android............................................... 45
Mapping Updates..................................................................... 46
TXMLTransformClient ............................................................... 47
XSLT ............................................................................................... 47
XSL Transformations ................................................................ 47
MSXSL ................................................................................... 48
Some examples of XSLT.................................................... 48
Default XSLT Templates ........................................................... 50
Our own XSLT Processor........................................................... 50
XML and XSL .......................................................................... 50
XMLData property ............................................................ 51
FileName property............................................................ 51
XML property................................................................... 51
XSLT Processor ....................................................................... 52
Alternative Approach ........................................................ 53
Summary ......................................................................................... 53