File: laz2_xmlcfg.xml

package info (click to toggle)
lazarus 4.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 275,760 kB
  • sloc: pascal: 2,341,904; xml: 509,420; makefile: 348,726; cpp: 93,608; sh: 3,387; java: 609; perl: 297; sql: 222; ansic: 137
file content (2049 lines) | stat: -rw-r--r-- 66,944 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
<?xml version="1.0" encoding="UTF-8"?>
<!--

Documentation for LCL (Lazarus Component Library) and LazUtils (Lazarus 
Utilities) are published under the Creative Commons Attribution-ShareAlike 4.0 
International public license.

https://creativecommons.org/licenses/by-sa/4.0/legalcode.txt
https://gitlab.com/freepascal.org/lazarus/lazarus/-/blob/main/docs/cc-by-sa-4-0.txt

Copyright (c) 1997-2025, by the Lazarus Development Team.

-->
<fpdoc-descriptions>
<package name="lazutils">
<!--
====================================================================
Laz2_XMLCfg
====================================================================
-->
<module name="Laz2_XMLCfg">
<short>
Implements classes used to read and write configuration data files in XML 
format.
</short>
<descr>
<p>
<file>laz2_xmlcfg.pas</file> contains classes, type and routines used to read 
and write configuration data files in XML format.
</p>
<p>
It is copied from the FreePascal Free Component Library (<b>FCL</b>) and 
adapted to use UTF-8 strings instead of WideStrings.
</p>
<p>
<file>laz2_xmlcfg.pas</file> is part of the <file>LazUtils</file> package.
</p>
</descr>

<element name="Classes"/>
<element name="SysUtils"/>
<element name="LazFileCache"/>
<element name="Laz2_DOM"/>
<element name="Laz2_XMLRead"/>
<element name="Laz2_XMLWrite"/>
<element name="LazUtilities"/>
<element name="TypInfo"/>

<element name="TXMLConfig">
<short>
Implements a class used to access and maintain an XML configuration data file.
</short>
<descr>
<p>
<var>TXMLConfig</var> is a <var>TComponent</var> descendant used to store 
configuration data using XML format. TXMLConfig is a simpler mechanism for 
accessing the content in an XML document. It uses path specifiers to describe 
the hierarchy of elements and attribute values, instead of focusing on DOM 
nodes. See the <link id="TXMLConfig-PathSyntax">TXMLConfig Path Syntax</link> 
topic for more information about path specifiers in TXMLConfig.
</p>
<p>
TXMLConfig provides method used to get or set the value for a path specifier 
in the XML document. Overloaded methods are includes to handle values using 
String, Integer, Extended, TRect, or Boolean data types. See the <link 
id="TXMLConfig-Using">Using TXMLConfig</link> topic for more information 
about using TXMLConfig.
</p>
</descr>
<seealso>
<link id="TXMLConfig-Using"/>
<link id="TXMLConfig-PathSyntax"/>
<link id="TRttiXMLConfig"/>
</seealso>
</element>

<!-- private -->
<element name="TXMLConfig.ZeroSrc"/>
<element name="TXMLConfig.FFilename"/>
<element name="TXMLConfig.FReadFlags"/>
<element name="TXMLConfig.FWriteFlags"/>
<element name="TXMLConfig.FPointSettings"/>

<element name="TXMLConfig.CreateConfigNode">
<short>Creates a DOM element representing the root node in Document.</short>
<descr>
<p>
<var>CreateConfigNode</var> is a procedure used to create a DOM element for 
the root node (or document element) in the XML Document. CreateConfigNode 
ensures that <var>Document</var> is a valid <var>TXMLDocument</var> instance; 
it is created when not already assigned (contains Nil). A 
<var>TDomElement</var> is created (if needed) with the element name CONFIG; 
it is stored as the document element (root node) in Document.
</p>
<p>
CreateConfigNode is used in the implementation of various methods, and is 
called when Document has not been assigned.
</p>
</descr>
<seealso>
<link id="TXMLConfig.WriteToStream"/>
<link id="TXMLConfig.SetValue"/>
<link id="TXMLConfig.Filename"/>
</seealso>
</element>

<element name="TXMLConfig.InitFormatSettings">
<short>Sets the default format settings used in the class instance.</short>
<descr>
<p>
<var>InitFormatSettings</var> is a procedure which sets the default format 
settings used in the class instance. InitFormatSettings updates an internal 
<var>TFormatSettings</var> member to the values returned by 
<var>DefaultFormatSettings</var>. It also specifies that the decimal 
separator is '.' (Period), and the thousands separator is ',' (Comma).
</p>
<remark>
While this may not agree with format settings for some locales, it is the 
format expected in the XML data files for the class instance.
</remark>
<p>
InitFormatSettings is called from the <var>Create</var> constructor.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Create"/>
<link id="DefaultFormatSettings"/>
<link id="TFormatSettings"/>
</seealso>
</element>

<element name="TXMLConfig.SetFilename">
<short>Sets the value for the Filename property.</short>
<descr></descr>
<seealso>
<link id="TXMLConfig.Filename"/>
</seealso>
</element>
<element name="TXMLConfig.SetFilename.AFilename">
<short>New value for the property.</short>
</element>

<!-- protected -->
<element name="TXMLConfig.TDomNodeArray">
<short>
Defines an array type used to store TDomNode instances.
</short>
</element>

<element name="TXMLConfig.TNodeCache">
<short>
Advanced record type used to implement an array-based TDomNode cache.
</short>
</element>

<element name="TXMLConfig.TNodeCache.Node">
<short>
Top-level node for the cached list of nodes.
</short>
</element>

<element name="TXMLConfig.TNodeCache.NodeSearchName">
<short>
Element name used to locate a node in the cache.
</short>
</element>

<element name="TXMLConfig.TNodeCache.ChildrenValid">
<short>
Indicates whether cached child nodes are valid after refresh.
</short>
</element>

<element name="TXMLConfig.TNodeCache.Children">
<short>
Array with the named child nodes for the cached DOM node.
</short>
</element>

<element name="TXMLConfig.TNodeCache.NodeListName">
<short>
Element name for a list of child nodes in the cache.
</short>
</element>

<element name="TXMLConfig.TNodeCache.NodeList">
<short>
Array with the list of child nodes accessed retrieved using an XPath wildcard.
</short>
</element>

<element name="TXMLConfig.TNodeCache.GrowArray">
<short>
Increases the capacity for the specified array of DOM nodes.
</short>
</element>
<element name="TXMLConfig.TNodeCache.GrowArray.AArray">
<short>
Array of DOM nodes resized in the method.
</short>
</element>
<element name="TXMLConfig.TNodeCache.GrowArray.ACount">
<short>
New capacity requested for the specified array.
</short>
</element>

<element name="TXMLConfig.TNodeCache.RefreshChildren">
<short>
Collects and re-sorts the child nodes for the Node in the cache instance.
</short>
</element>

<element name="TXMLConfig.TNodeCache.RefreshChildrenIfNeeded">
<short>
Collects and re-sorts the child nodes for the Node in the cache instance if the 
child nodes have not already been refreshed.
</short>
</element>

<element name="TXMLConfig.TNodeCache.RefreshNodeList">
<short>
Gathers child nodes with the specified node name into the NodeList for the 
cache instance.
</short>
</element>
<element name="TXMLConfig.TNodeCache.RefreshNodeList.ANodeName">
<short>
Element name for the child nodes handled in the method.
</short>
</element>

<element name="TXMLConfig.TNodeCache.RefreshNodeListIfNeeded">
<short>
Gathers child nodes with the specified node name into the NodeList if 
NodeListName does not contain elements with the specified name.
</short>
</element>
<element name="TXMLConfig.TNodeCache.RefreshNodeListIfNeeded.ANodeName">
<short>
Element name for the child nodes handled in the method.
</short>
</element>

<element name="TXMLConfig.TNodeCache.AddNodeToList">
<short>
Creates and returns a new DOM node with the element name in NodeListName in the NodeList.
</short>
</element>
<element name="TXMLConfig.TNodeCache.AddNodeToList.Result">
<short>
TDOMNode instance created and added to the NodeList in the method.
</short>
</element>

<element name="TXMLConfig.doc">
<short>Internal member with the TXMLDocument for the class instance.</short>
<descr>
<p>
<var>Doc</var> is a <var>TXMLDocument</var> member with the document instance 
used to store the XML content for the configuration file. The value in Doc is 
assigned in the <var>Clear</var>, <var>SetFilename</var>, or 
<var>CreateConfigNode</var> methods. It is checked in other methods to ensure 
that a valid XML document exists prior to performing Input/Output operations.
</p>
<p>
Use the <var>FreeDoc</var> method to free the XML document for the class 
instance.
</p>
<remark>
The visibility for the Doc member is protected.
</remark>
</descr>
<seealso>
<link id="TXMLConfig.Clear"/>
<link id="TXMLConfig.Destroy"/>
<link id="TXMLConfig.InternalFindNode"/>
<link id="TXMLConfig.ReadFromStream"/>
<link id="TXMLConfig.Filename"/>
<link id="TXMLConfig.SetValue"/>
</seealso>
</element>

<element name="TXMLConfig.FModified">
<short>
Member used to indicate the configuration file has been modified.
</short>
<descr></descr>
<seealso></seealso>
</element>

<element name="TXMLConfig.fDoNotLoadFromFile">
<short>
Member used to indicate that the data was created manually, and not loaded 
from a file or stream.
</short>
<descr></descr>
<seealso></seealso>
</element>

<element name="TXMLConfig.fAutoLoadFromSource">
<short>
Member used to store String content loaded into the configuration file.
</short>
<descr></descr>
<seealso></seealso>
</element>

<element name="TXMLConfig.fPathCache">
<short>
Not used/updated in the current implementation.
</short>
<descr>
Not used/updated in the current implementation.
</descr>
<seealso></seealso>
</element>

<element name="TXMLConfig.fPathNodeCache">
<short>
Member used to cache DOM nodes accessed using paths in the class instance.
</short>
<descr></descr>
<seealso></seealso>
</element>

<element name="TXMLConfig.Loaded">
<short>Signals that LCL component streaming has been completed.</short>
<descr>
<p>
<var>Loaded</var> is an overridden method in TXMLConfig used to perform 
actions needed when the component has finished loading during LCL component 
streaming. Loaded calls the inherited method. It calls <var>SetFilename</var> 
to load the XML configuration file data when the <var>Filename</var> property 
is assigned in the component.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Filename"/>
</seealso>
</element>

<element name="TXMLConfig.ExtendedToStr">
<short>Converts an extended value to its representation as a String.</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TXMLConfig.ExtendedToStr.Result">
<short>String representation for the Extended value.</short>
</element>
<element name="TXMLConfig.ExtendedToStr.e">
<short>Extended value converted in the method.</short>
</element>

<element name="TXMLConfig.StrToExtended">
<short>Converts the specified String value to an Extended data type.</short>
<descr>
<p>
<var>StrToExtended</var> converts the specified <var>String</var> value to 
its representation as an <var>Extended</var> data type.
</p>
<p>
<var>ADefault</var> contains the default value used in the method when the 
string is empty or contains an invalid representation for an Extended data 
type. StrToExtended calls the <var>StrToFloatDef</var> routine to convert the 
string value using the format settings for the class.
</p>
<p>
<var>StrToExtended</var> is used in the implementation of the 
<var>GetExtendedValue</var> method.
</p>
</descr>
<seealso>
<link id="TXMLConfig.GetExtendedValue"/>
</seealso>
</element>
<element name="TXMLConfig.StrToExtended.Result">
<short>Extended value converted in the method.</short>
</element>
<element name="TXMLConfig.StrToExtended.s">
<short>String converted to an Extended value.</short>
</element>
<element name="TXMLConfig.StrToExtended.ADefault">
<short>
Default value used when no value can be derived from the string.
</short>
</element>

<element name="TXMLConfig.SizeOfTypeInfo">
<short>
Gets the number of bytes needed to store a value using the specified RTTI 
type.
</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfig.SizeOfTypeInfo.Result">
<short>
Number of bytes needed for a value of the specified type.
</short>
</element>
<element name="TXMLConfig.SizeOfTypeInfo.APTypeInfo">
<short>
Pointer to the RTTI type information for a given value.
</short>
</element>

<element name="TXMLConfig.ValueWithTypeInfoToString">
<short>
Gets the string representation for the specified value as the specified type.
</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfig.ValueWithTypeInfoToString.Result">
<short>
String with the value for the specified type.
</short>
</element>
<element name="TXMLConfig.ValueWithTypeInfoToString.AValue">
<short>
Untyped parameter with the value converted to a string in the method.
</short>
</element>
<element name="TXMLConfig.ValueWithTypeInfoToString.APTypeInfo">
<short>
Pointer to the RTTI type for the specified value.
</short>
</element>

<element name="TXMLConfig.StringToValueWithTypeInfo">
<short>
Converts the specified string value to a value using the specified type.
</short>
<descr/>
<seealso/>
</element>
<element name="TXMLConfig.StringToValueWithTypeInfo.Result">
<short>
The return value is overloaded in StringToValueWithTypeInfo. Returns True if 
the value is successfully converted to the type in APTypeInfo. Returns a 
string with the converted value in an overloaded variant.
</short>
</element>
<element name="TXMLConfig.StringToValueWithTypeInfo.AString">
<short>
String with the value converted to the specified type in the method.
</short>
</element>
<element name="TXMLConfig.StringToValueWithTypeInfo.APTypeInfo">
<short>
Pointer to the RTTI type information for the converted value.
</short>
</element>
<element name="TXMLConfig.StringToValueWithTypeInfo.AResult">
<short>
Untyped output parameter with the value converted to the specified type.
</short>
</element>

<element name="TXMLConfig.ReadXMLFile">
<short>
Reads the XML content from the specified file into a TXMLDocument instance.
</short>
<descr>
<p>
<var>ReadXMLFile</var> is a procedure used to read the XML content in 
<var>AFilename</var> into the <var>TXMLDocument</var> instance returned in 
<var>ADoc</var>. ReadXMLFile calls <var>InvalidatePathCache</var> to remove 
cached DOM nodes in the class instance. ReadXMLFile calls the 
<var>ReadXMLFile</var> method in the <file>Laz2_XMLRead</file> unit to load 
the file content into the XML document instance.
</p>
<p>
Use <var>ReadFromStream</var> to load the XML content in the class from a 
<var>TStream</var> instance.
</p>
<p>
Use <var>WriteXMLFile</var> or <var>WriteToStream</var> to store the XML 
content for the class instance.
</p>
</descr>
<seealso>
<link id="TXMLConfig.InvalidatePathCache"/>
<link id="TXMLConfig.ReadFromStream"/>
<link id="TXMLConfig.WriteToStream"/>
<link id="TXMLConfig.WriteXMLFile"/>
<link id="#lazutils.laz2_xmlread.ReadXMLFile">ReadXMLFile</link>
</seealso>
</element>.
<element name="TXMLConfig.ReadXMLFile.ADoc">
<short>XML document with the content loaded in the method.</short>
</element>
<element name="TXMLConfig.ReadXMLFile.AFilename">
<short>
File name containing the XML content for the configuration file.
</short>
</element>

<element name="TXMLConfig.WriteXMLFile">
<short>
Writes XML configuration data in Document to the specified file name.
</short>
<descr>
<p>
<var>WriteXMLFile</var> is a procedure used to write the XML content in the 
<var>Document</var> property to the file specified in <var>AFilename</var>. 
WriteXMLFile calls the <var>WriteXMLFile</var> routine in 
<file>LazUtils</file> to write the XML content using the 
<var>WriteFlags</var> defined in the class instance. The 
<var>InvalidateFileStateCache</var> routine is called to invalidate a file 
cache entry for the specified file name.
</p>
<p>
Use <var>WriteToSteam</var> to store the XML content in <var>Document</var> 
to a <var>TStream</var> instance.
</p>
</descr>
<seealso>
<link id="TXMLConfig.WriteToStream"/>
<link id="TXMLConfig.ReadXMLFile"/>
<link id="TXMLConfig.ReadFromStream"/>
</seealso>
</element>
<element name="TXMLConfig.WriteXMLFile.ADoc">
<short>Document with the XML content written in the method.</short>
</element>
<element name="TXMLConfig.WriteXMLFile.AFileName">
<short>File name where the XML content is stored.</short>
</element>

<element name="TXMLConfig.FreeDoc">
<short>Frees the TXMLDocument instance for the XML configuration file.</short>
<descr>
<p>
<var>FreeDoc</var> is a procedure used to free the <var>TXMLDocument</var> 
instance used in the <var>Document</var> property. FreeDoc calls 
<var>InvalidatePathCache</var> to remove all cached DOM nodes from the 
Document. <var>FreeAndNil</var> is used to free the object instance and to 
set the value for the member to Nil.
</p>
<p>
FreeDoc is used in the implementation of various methods like 
<var>Destroy</var>, <var>Clear</var>, <var>ReadFromStream</var>, and 
<var>SetFilename</var>.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig.Destroy"/>
<link id="TXMLConfig.Clear"/>
<link id="TXMLConfig.ReadFromStream"/>
<link id="TXMLConfig.Filename"/>
<link id="TXMLConfig.InvalidatePathCache"/>
</seealso>
</element>

<element name="TXMLConfig.SetPathNodeCache">
<short>
Ensures a DOM node is present in the internal cache for the class instance.
</short>
<descr>
<p>
<var>SetPathNodeCache</var> is a procedure used to ensure that the DOM node 
with the specified position and name is present in the node cache for the 
class instance. SetPathNodeCache adjusts the length of the internal node 
cache when needed to accommodate a new DOM node. 
<var>InvalidateCacheTilEnd</var> is called to refresh the cache when the Node 
is not found starting at the specified position.
</p>
<p>
SetPathNodeCache is used in the implementation of the 
<var>InternalFindNode</var> method.
</p>
</descr>
<seealso>
<link id="TXMLConfig.InternalFindNode"/>
<link id="TXmlConfig.TNodeCache"/>
</seealso>
</element>
<element name="TXMLConfig.SetPathNodeCache.Index">
<short>
Position in the cache to start looking for the specified DOM node.
</short>
</element>
<element name="TXMLConfig.SetPathNodeCache.Node">
<short>DOM node to locate in the internal cache.</short>
</element>
<element name="TXMLConfig.SetPathNodeCache.aNodeSearchName">
<short>DOM node name to locate in the cache.</short>
</element>

<element name="TXMLConfig.GetCachedPathNode">
<short>
Gets a cached DOM node starting at the specified position in the cache.
</short>
<descr>
<p>
<var>GetCachedPathNode</var> is an overloaded <var>TDomNode</var> function 
used to get the document element at the specified position in the cached DOM 
nodes for the <var>Document</var>. GetCachedPathNode is used in the 
implementation of the <var>InternalFindNode</var> method.
</p>
</descr>
<seealso>
<link id="TXMLConfig.InternalFindNode"/>
</seealso>
</element>
<element name="TXMLConfig.GetCachedPathNode.Result">
<short>
DOM node with the specified name, or Nil when the cache is invalid.
</short>
</element>
<element name="TXMLConfig.GetCachedPathNode.Index">
<short>Position in the cache for the initial DOM node in the search.</short>
</element>
<element name="TXMLConfig.GetCachedPathNode.aNodeSearchName">
<short>Node name located in the cache.</short>
</element>

<element name="TXMLConfig.InvalidateCacheTilEnd">
<short>
Removes DOM nodes from the internal cache starting at the specified ordinal 
position.
</short>
<descr>
<p>
<var>InvalidateCacheTilEnd</var> iterates over the <var>TNodeCache</var> 
items in <var>PathNodeCache</var> stating at the position in 
<var>StartIndex</var>, and sets the node references to Nil to invalidate the 
DOM node in the cache.
</p>
<p>
<var>InvalidateCacheTilEnd</var> is used in the implementation of the 
<var>InvalidatePathCache</var>, <var>SetPathNodeCache</var>, and 
<var>FindChildNode</var> methods.
</p>
</descr>
<seealso>
<link id="TXMLConfig.SetPathNodeCache"/>
<link id="TXMLConfig.InvalidatePathCache"/>
<link id="TXMLConfig.FindChildNode"/>
<link id="TXmlConfig.TNodeCache"/>
</seealso>
</element>
<element name="TXMLConfig.InvalidateCacheTilEnd.StartIndex">
<short>Initial position in the cache affected in the method.</short>
</element>

<element name="TXMLConfig.InternalFindNode">
<short>
Searches for the DOM node with the specified path, and updates the node cache.
</short>
<descr>
<p>
<var>InternalFindNode</var> is a <var>TDOMNode</var> function used to locate 
the node stored at the path specified in <var>Document</var>. 
<var>InternalFindNode</var> ensures that the node cache for the class is 
updated to include the <var>TDOMNode</var> at <var>APath</var> when it is 
accessed in the method. It also ensures that all element nodes for the 
specifier in APath are included in the cache as well. The 
<var>FindChildNode</var> method is used to locate <var>TDOMNodes</var> in the 
hierarchy. When <var>CreateNodes</var> is <b>True</b>, any missing DOM nodes 
in the hierarchy are created.
</p>
<p>
<var>InternalFindNode</var> is used in the implementation of the 
<var>GetValue</var>, <var>SetValue</var>, <var>GetListItemCount</var>, 
<var>DeletePath</var>, and <var>FindNode</var> methods.
</p>
</descr>
<seealso>
<link id="TXMLConfig.SetPathNodeCache"/>
<link id="TXMLConfig.GetCachedPathNode"/>
<link id="TXMLConfig.FindChildNode"/>
</seealso>
</element>
<element name="TXMLConfig.InternalFindNode.Result">
<short>DOM node located for the specified path.</short>
</element>
<element name="TXMLConfig.InternalFindNode.APath">
<short>Path specifier for the DOM node.</short>
</element>
<element name="TXMLConfig.InternalFindNode.PathLen">
<short>Length of the path specifier.</short>
</element>
<element name="TXMLConfig.InternalFindNode.CreateNodes">
<short>Indicates if missing DOM nodes in Document are created.</short>
</element>

<element name="TXMLConfig.InternalCleanNode">
<short>
Removes the specified node and all of its children from the Document.
</short>
<descr>
<p>
<var>InternalCleanNode</var> ensures that the specified DOM node is removed 
from the <var>Document</var>, both as a parent or child node in the element 
tree. InternalCleanNode calls <var>InvalidatePathCache</var> to reflect the 
change in the Document, and sets the value in <var>Modified</var> to 
<b>True</b>.
</p>
<remark>
No actions are performed in the method when Node is unassigned (contains 
<b>Nil</b>).
</remark>
<p>
InternalCleanNode is used in the implementation of the <var>DeletePath</var> 
and <var>DeleteValue</var> methods.
</p>
</descr>
<seealso>
<link id="TXMLConfig.DeletePath"/>
<link id="TXMLConfig.DeleteValue"/>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig.Modified"/>
</seealso>
</element>
<element name="TXMLConfig.InternalCleanNode.Node">
<short>DOM Node to remove from the Document.</short>
</element>

<element name="TXMLConfig.FindChildNode">
<short>
Finds (and optionally caches) a child node starting at the specified index 
position using the specified XPath node name and position.
</short>
<descr>
<p>
<var>FindChildNode</var> is a <var>TDOMNode</var> function used to retrieve 
(and optionally cache) a DOM node which matches the XPATH expression in AName.
</p>
<p>
PathIndex contains the ordinal position for the first child node examined in 
the list of child nodes. It is a 0-based value.
</p>
<p>
AName can contain the name for a child and and a predicate with the index 
position in the list of nodes. For example: 'NodeName[4]'. Please note that 
positions in XPATH start at 1 instead of 0 as used in Pascal.
</p>
</descr>
<seealso>
<link id="TXMLConfig.InternalFindNode"/>
</seealso>
</element>
<element name="TXMLConfig.FindChildNode.Result">
<short>
Child DOM node which matches the expression and position indicated in the 
function arguments.
</short>
</element>
<element name="TXMLConfig.FindChildNode.PathIndex">
<short>
Position for the first child node in the list of nodes examined in the 
method.
</short>
</element>
<element name="TXMLConfig.FindChildNode.AName">
<short>
XPATH expression which indicates the node name and the predicate which 
indicates the position for the selected child node.
</short>
</element>
<element name="TXMLConfig.FindChildNode.CreateNodes">
<short>
<b>True</b> if cache entries are created for the node(s) which match the 
arguments to the function.
</short>
</element>

<element name="TXMLConfig.Create">
<short>Constructor for the class instance.</short>
<descr>
<p>
<var>Create</var> is the overloaded, overridden constructor for the class 
instance.
</p>
<p>
Calling Create with the <var>AFilename</var> argument causes the XML content 
in the specified <var>Filename</var> to be loaded into the class instance. 
The variant that specifies an owner simply sets the default values in 
<var>ReadFlags</var>, <var>WriteFlags</var>, and its internal format settings.
</p>
<p>
Alternate constructors, like <var>CreateClean</var> and 
<var>CreateWithSource</var>, are provided to create an empty XML 
configuration file or to load its content from a String variable.
</p>
</descr>
<seealso>
<link id="TXMLConfig.CreateClean"/>
<link id="TXMLConfig.CreateWithSource"/>
<link id="TXMLConfig.Destroy"/>
<link id="TXMLConfig.ReadFlags"/>
<link id="TXMLConfig.WriteFlags"/>
</seealso>
</element>
<element name="TXMLConfig.Create.AOwner">
<short>Owner of the class instance.</short>
</element>
<element name="TXMLConfig.Create.AFilename">
<short>File with the XML content loaded in the class instance.</short>
</element>

<element name="TXMLConfig.CreateClean">
<short>
Alternate constructor used to create the class without reading existing XML 
content in the specified file.
</short>
<descr>
<p>
<var>CreateClean</var> is an alternate constructor for the class instance. 
CreateClean sets an internal flag to indicate that the XML content in 
<var>AFilename</var> is not automatically loaded when the value in the 
<var>Filename</var> property is assigned. This ensures that the class 
instance is "clean" (has no XML content).
</p>
<p>
CreateClean calls an overloaded variant of <var>Create</var> using 
<var>AFilename</var> as an argument. The value in <var>Modified</var> is set 
to True if the specified file exists in the cache for the local file system.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Create"/>
<link id="TXMLConfig.Filename"/>
<link id="TXMLConfig.Modified"/>
</seealso>
</element>
<element name="TXMLConfig.CreateClean.AFilename">
<short>File name where XML content will be stored.</short>
</element>

<element name="TXMLConfig.CreateWithSource">
<short>
Alternate constructor used to create the class using the XML content 
specified in Source.
</short>
<descr>
<p>
<var>CreateWithSource</var> is an alternate constructor used to create the 
class instance and load the XML content specified in the <var>Source</var> 
argument. CreateWithSource sets an internal member used for the XML content 
in Source. CreateWithSource calls the <var>CreateClean</var> method to 
initialize the class instance.
</p>
</descr>
<seealso>
<link id="TXMLConfig.CreateClean"/>
</seealso>
</element>
<element name="TXMLConfig.CreateWithSource.AFilename">
<short>File name where XML configuration data will be stored.</short>
</element>
<element name="TXMLConfig.CreateWithSource.Source">
<short>String with the XML content loaded in the class instance.</short>
</element>

<element name="TXMLConfig.Destroy">
<short>Destructor for the class instance.</short>
<descr>
<p>
<var>Destroy</var> is the overridden destructor for the class instance. 
Destroy ensures that a <var>TXMLDocument</var> instance in the 
<var>Document</var> property is written to disk and freed before the object 
instance is destroyed. Destroy calls the inherited destructor.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig.Flush"/>
<link id="TXMLConfig.FreeDoc"/>
</seealso>
</element>

<element name="TXMLConfig.Clear">
<short>Removes existing XML content in the Document property.</short>
<descr>
<p>
<var>Clear</var> is a procedure used to remove existing XML content in the 
<var>Document</var> property. Clear calls <var>FreeDoc</var> to free the 
<var>Document</var> instance, and re-creates the member along with its 
<b>CONFIG</b> document element.
</p>
<p>
Clear is used in the implementation of the <var>ReadFromStream</var> method.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig.FreeDoc"/>
<link id="TXMLConfig.ReadFromStream"/>
</seealso>
</element>

<element name="TXMLConfig.Flush">
<short>
Forces the XML content for the configuration file to be written to Filename.
</short>
<descr>
<p>
<var>Flush</var> is a procedure which forces the XML content in 
<var>Document</var> to be written to the file specified in 
<var>Filename</var>. Flush uses the value in the <var>Modified</var> property 
to determine if the content in Document has been altered.
</p>
<p>
Flush calls the <var>WriteXMLFile</var> method to store Document to the 
required Filename. The value in Modified is set to False when the Document 
has been written to the local file system.
</p>
<remark>
No actions are performed in the method when <var>Modified</var> is False, or 
when <var>Filename</var> contains an empty string ('').
</remark>
<p>
Flush is used in the implementation of methods like <var>Destroy</var> and 
<var>SetFilename</var>.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Destroy"/>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig.Filename"/>
<link id="TXMLConfig.Modified"/>
<link id="TXMLConfig.Filename"/>
<link id="TXMLConfig.WriteXMLFile"/>
</seealso>
</element>

<element name="TXMLConfig.ReadFromStream">
<short>
Reads the XML content in Document from the specified stream instance.
</short>
<descr>
<p>
<var>ReadFromStream</var> is a procedure used to read the XML content for the 
<var>Document</var> from the <var>TStream</var> instance in <var>S</var>. 
ReadFromStream calls <var>FreeDoc</var> to ensure that any existing XML 
content in the configuration file is discarded prior to loading values from 
the stream.
</p>
<p>
ReadFromStream calls the <var>ReadXMLFile</var> routine in the 
<file>Laz2_XMLRead</file> unit to load the XML content. If Document was not 
assigned in ReadXMLFile, the <var>Clear</var> method is called to create a 
Document with the correct default values.
</p>
<p>
Use <var>ReadXMLFile</var> to read XML content from a file on the local file 
system.
</p>
<p>
Use <var>WriteToStream</var> or <var>WriteXMLFile</var> to store XML content 
in the Document property to a stream or file.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Clear"/>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig.FreeDoc"/>
<link id="TXMLConfig.ReadXMLFile"/>
<link id="TXMLConfig.WriteToStream"/>
<link id="TXMLConfig.WriteXMLFile"/>
<link id="#lazutils.laz2_xmlread.ReadXMLFile">ReadXMLFile</link>
</seealso>
</element>
<element name="TXMLConfig.ReadFromStream.s">
<short>TStream instance with the XML content read in the method.</short>
</element>

<element name="TXMLConfig.WriteToStream">
<short>
Writes the XML content for the configuration file to the specified stream 
instance.
</short>
<descr>
<p>
<var>WriteToStream</var> is a procedure used to write the XML content for the 
configuration file to the <var>TStream</var> instance specified in 
<var>S</var>. WriteToStream checks the <var>Document</var> property to ensure 
that a valid <var>TXMLDocument</var> instance has been assigned to the 
member. When Document is unassigned (contains Nil), the 
<var>CreateConfigNode</var> method is called to allocate a document instance 
with the required CONFIG document element.
</p>
<p>
The <var>WriteXMLFile</var> routine in the <file>Laz2_XMLWrite</file> unit is 
called to store the XML document to the TStream specified in <var>S</var> 
using the <var>WriteFlags</var> for the class instance.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig.WriteFlags"/>
<link id="#lazutils.laz2_xmlwrite.WriteXMLFile">WriteXMLFile</link>
</seealso>
</element>
<element name="TXMLConfig.WriteToStream.s">
<short>
TStream instance where the XML content in Document is stored in the method.
</short>
</element>

<element name="TXMLConfig.GetValue">
<short>
Gets the value from the DOM node at the specified path in the XML 
configuration file.
</short>
<descr>
<p>
<var>GetValue is</var> an overloaded function used to get the value stored in 
a DOM node at the path specified in <var>APath</var>. Overloaded variants are 
provided to return <var>String</var>, <var>Integer</var>, <var>Int64</var>, 
<var>Boolean</var>, and <var>TRect</var> data types. Other variants allow the 
arguments to be represented as various data types including untyped constants.
</p>
<p>
<var>APath</var> contain the path specifier that represents the hierarchy of 
elements and attributes in <var>Document</var> where the value is stored. See 
<link id="TXMLConfig-PathSyntax">TXMLConfig Path Syntax</link> for details 
about path specifiers.
</p>
<p>
<var>ADefault</var> contains the default value returned when the DOM node 
does not have any content representing a value.
</p>
<p>
<var>ARect</var> is the <var>TRect</var> output parameter used to return the 
value in the overloaded method.
</p>
<p>
Use <var>GetExtendedValue</var> to get the value for a DOM node as an 
<var>Extended</var> (or <var>Float</var>) data type.
</p>
</descr>
<seealso>
<link id="TXMLConfig.GetExtendedValue"/>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig-PathSyntax"/>
</seealso>
</element>
<element name="TXMLConfig.GetValue.Result">
<short>Value for the Node at the specified path.</short>
</element>
<element name="TXMLConfig.GetValue.APath">
<short>Path to locate in the Document.</short>
</element>
<element name="TXMLConfig.GetValue.ADefault">
<short>Default value used when the DOM node has no content.</short>
</element>
<element name="TXMLConfig.GetValue.ARect">
<short>TRect with the value for the DOM node.</short>
</element>
<element name="TXMLConfig.GetValue.AResult">
<short>
Returns the value for a set or enumeration element as the type specified in 
APTypeInfo.
</short>
</element>
<element name="TXMLConfig.GetValue.APTypeInfo">
<short>
Pointer to the RTTI type information for the value.
</short>
</element>

<element name="TXMLConfig.GetExtendedValue">
<short>
Gets the value for a DOM node at the specified path as an extended data type.
</short>
<descr>
<p>
<var>GetExtendedValue</var> is an <var>Extended</var> function used to get 
the value for a DOM node at the specified path as an Extended data type. 
GetExtendedValue is similar to the <link id="TXMLConfig.GetValue"/> method; 
in fact it calls GetValue to retrieve the value for the DOM node in 
<var>APath</var>. It calls <var>StrToExtended</var> to convert the node value 
to the Extended data type used as the return value.
</p>
<p>
Use <var>ADefault</var> to specify the default value used in the method when 
the DOM node does not contain any content (or value).
</p>
</descr>
<seealso>
<link id="TXMLConfig.GetValue"/>
</seealso>
</element>
<element name="TXMLConfig.GetExtendedValue.Result">
<short>Extended value for the specified DOM node.</short>
</element>
<element name="TXMLConfig.GetExtendedValue.APath">
<short>Path to the DOM node examined in the method.</short>
</element>
<element name="TXMLConfig.GetExtendedValue.ADefault">
<short>Default value used when the DOM node has no content.</short>
</element>

<element name="TXMLConfig.SetValue">
<short>Sets the value in a DOM node at the specified path.</short>
<descr>
<p>
<var>SetValue</var> is an overloaded procedure used to set the value in the 
DOM node located at the path specified in <var>APath</var>. <var>AValue</var> 
contains the content stored in the specified DOM node. Overloaded variants of 
the method are provided where AValue is either a <var>String</var>, 
<var>Int64</var>, or <var>Boolean</var> data type. The String variant of the 
method is called to store the various value types in a DOM node.
</p>
<p>
Use SetExtendedValue to store an Extended data type in a specified DOM node.
</p>
</descr>
<seealso>
<link id="TXMLConfig.SetExtendedValue"/>
<link id="TXMLConfig.DeleteValue"/>
<link id="TXMLConfig.SetDeleteValue"/>
<link id="TXMLConfig.SetDeleteExtendedValue"/>
</seealso>
</element>
<element name="TXMLConfig.SetValue.APath">
<short>Path to the DOM node updated in the method.</short>
</element>
<element name="TXMLConfig.SetValue.AValue">
<short>Value to store in the specified DOM node.</short>
</element>
<element name="TXMLConfig.SetValue.APTypeInfo">
<short>
Pointer to the RTTI type information for the value.
</short>
</element>

<element name="TXMLConfig.SetDeleteValue">
<short>
Updates or removes the value stored at the specified path.
</short>
<descr>
<p>
<var>SetDeleteValue</var> is an overloaded method used to update or remove 
the node at the path specified in APath. The <var>AValue</var> and 
<var>DefValue</var> arguments determine whether the node is updated, or removed 
by calling DeleteValue. When AValue and DefValue are equal, this indicates the 
node has the default or unassigned value; DeleteValue is called to remove the 
node at APath. Otherwise, SetValue is called to store AValue to the specified 
node path.
</p>
<p>
The overloaded variants allow the AValue and DefValue arguments to contain 
various data types including: String, Int64, Boolean, TRect, or untyped 
constants.
</p>
</descr>
<seealso>
<link id="TXmlConfig.SetDeleteExtendedValue"/>
<link id="TXmlConfig.DeleteValue"/>
<link id="TXmlConfig.GetValue"/>
</seealso>
</element>
<element name="TXMLConfig.SetDeleteValue.APath">
<short>Path specifier for the value affected in the method.</short>
</element>
<element name="TXMLConfig.SetDeleteValue.AValue">
<short>Value to store at the specified path.</short>
</element>
<element name="TXMLConfig.SetDeleteValue.DefValue">
<short>
Value which indicates the path should be removed instead of updated.
</short>
</element>
<element name="TXMLConfig.SetDeleteValue.APTypeInfo">
<short>
Pointer to the RTTI type information for the value / default value.
</short>
</element>

<element name="TXMLConfig.SetExtendedValue">
<short>
Sets the value in the DOM node at the specified path using an extended data 
type.
</short>
<descr>
<p>
<var>SetExtendedValue</var> is a procedure used to set the value in the DOM 
node at the specified path to the value in the <var>Extended</var> data type.
</p>
<p>
<var>APath</var> contains the path specifier which describes the hierarchy of 
elements and attributes to the value. See <link 
id="TXMLConfig-PathSyntax">TXMLConfig Path Syntax</link> for details about 
path specifiers. <var>AValue</var> contains the Extended data type stored at 
the specified path.
</p>
<p>
SetExtendedValue is similar to the <link id="TXMLConfig.SetValue"/> method; 
in fact, it calls <var>SetValue</var> to store the string representation of 
<var>AValue</var> prepared using <var>ExtendedToStr</var>.
</p>
</descr>
<seealso>
<link id="TXMLConfig.SetValue"/>
<link id="TXMLConfig.ExtendedToStr"/>
<link id="TXMLConfig.DeletePath"/>
<link id="TXMLConfig-PathSyntax"/>
</seealso>
</element>
<element name="TXMLConfig.SetExtendedValue.APath">
<short>Path to the DOM node updated in the method.</short>
</element>
<element name="TXMLConfig.SetExtendedValue.AValue">
<short>Value stored in the specified DOM node.</short>
</element>

<element name="TXMLConfig.SetDeleteExtendedValue">
<short>Updates or removes the Extended value at the specified path.</short>
<descr></descr>
<seealso>
<link id="TXmlConfig.SetDeleteValue"/>
<link id="TXmlConfig.DeleteValue"/>
<link id="TXMLConfig.DeletePath"/>
<link id="TXmlConfig.GetValue"/>
<link id="TXmlConfig.SetValue"/>
</seealso>
</element>
<element name="TXMLConfig.SetDeleteExtendedValue.APath">
<short>Path specifier to the node affected in the method.</short>
</element>
<element name="TXMLConfig.SetDeleteExtendedValue.AValue">
<short>Value stored at the specified path.</short>
</element>
<element name="TXMLConfig.SetDeleteExtendedValue.DefValue">
<short>
Value which indicates the node should be removed instead of updated.
</short>
</element>

<element name="TXMLConfig.DeletePath">
<short>Deletes the DOM node at the specified path in the Document.</short>
<descr>
<p>
<var>DeletePath</var> is a procedure used to delete the DOM node at the 
specified path in the <var>Document</var>. <var>APath</var> contains the path 
specifier that describes the hierarchy of elements and attributes needed to 
access the DOM node. See <link id="TXMLConfig-PathSyntax">TXMLConfig Path 
Syntax</link> for details about path specifiers.
</p>
<p>
<var>DeletePath</var> calls <var>InternalFindNode</var> to get the node 
removed in the method. The node is removed from its parent DOM node, and the 
value in <var>Modified</var> is set to <b>True</b>. The 
<var>InvalidatePathCache</var> method is called to reflect the change in the 
Document. <var>InternalCleanNode</var> is called to ensure that the node is 
removed from the parent DOM node in <var>Document</var>.
</p>
<remark>
No actions are performed in the method when a node for the specified path 
cannot be located, or the node does not have a parent node (it is the root 
node in the Document).
</remark>
</descr>
<seealso>
<link id="TXMLConfig.Document"/>
<link id="TXMLConfig.InternalFindNode"/>
<link id="TXMLConfig.InternalCleanNode"/>
<link id="TXMLConfig.InvalidatePathCache"/>
<link id="TXMLConfig-PathSyntax"/>
</seealso>
</element>
<element name="TXMLConfig.DeletePath.APath">
<short>Path specifier for the DOM node to locate in the Document.</short>
</element>

<element name="TXMLConfig.DeleteValue">
<short>Deletes the value stored in the DOM node at the specified path.</short>
<descr>
<p>
<var>DeleteValue</var> is a procedure used to remove the value for a DOM node 
stored at the path specified in <var>APath</var>. <var>APath</var> contains 
the path specifier which describes the hierarchy of elements and attributes 
needed to access the DOM node. See <link 
id="TXMLConfig-PathSyntax">TXMLConfig Path Syntax</link> for details about 
path specifiers.
</p>
<p>
DeleteValue calls the <var>FindNode</var> method to get the DOM node updated 
in the method.
</p>
<remark>
No actions are performed in the method when a node cannot be found with the 
specified path.
</remark>
</descr>
<seealso>
<link id="TXMLConfig-PathSyntax"/>
<link id="TXMLConfig.FindNode"/>
</seealso>
</element>
<element name="TXMLConfig.DeleteValue.APath">
<short>Path to the DOM node affected in the method.</short>
</element>

<element name="TXMLConfig.FindNode">
<short>Retrieves the DOM node with the specified path.</short>
<descr>
<p>
<var>FindNode</var> is a <var>TDOMNode</var> function used to retrieve the 
DOM node stored at the path specified in <var>APath</var> in the 
<var>Document</var> instance. <var>FindNode</var> calls 
<var>InternalFindNode</var> to locate the DOM node used as the return value 
for the method.
</p>
<p>
<var>APath</var> contains the path specifier used to locate the DOM node. It 
contains the hierarchy of elements and attributes needed to access the DOM 
node, as described in <link id="TXMLConfig-PathSyntax">TXMLConfig Path 
Syntax</link>.
</p>
<p>
<var>PathHasValue</var> indicates if <var>APath</var> includes a specifier 
for the attribute where the value is stored. When <var>PathHasValue</var> is 
<b>True</b>, the trailing path identifier (for the attribute name) is removed 
from <var>APath</var>. Otherwise, the value in <var>APath</var> is used in 
its unmodified state.
</p>
<p>
<var>FindNode</var> is used in the implementation of the 
<var>DeleteValue</var>, <var>GetChildCount</var>, <var>HasPath</var>, and 
<var>HasChildPaths</var> methods.
</p>
</descr>
<seealso>
<link id="TXMLConfig.DeleteValue"/>
<link id="TXMLConfig.GetChildCount"/>
<link id="TXMLConfig.HasPath"/>
<link id="TXMLConfig.HasChildPaths"/>
</seealso>
</element>
<element name="TXMLConfig.FindNode.Result">
<short>DOM node stored at the specified path.</short>
</element>
<element name="TXMLConfig.FindNode.APath">
<short>Path to the DOM node retrieve in the method.</short>
</element>
<element name="TXMLConfig.FindNode.PathHasValue">
<short>Indicates if the path is checked for a value.</short>
</element>

<element name="TXMLConfig.HasPath">
<short>Indicates if a DOM node exists for the specified path.</short>
<descr></descr>
<seealso>
<link id="TXMLConfig.FindNode"/>
</seealso>
</element>
<element name="TXMLConfig.HasPath.Result">
<short>True when a DOM node exists with the specified path.</short>
</element>
<element name="TXMLConfig.HasPath.APath">
<short>Path examined in the method.</short>
</element>
<element name="TXMLConfig.HasPath.PathHasValue">
<short>Indicates if the DOM node has content representing the value.</short>
</element>

<element name="TXMLConfig.HasChildPaths">
<short>
Indicates if the DOM node at the specified path has child nodes.
</short>
<descr></descr>
<seealso>
<link id="TXMLConfig.FindNode"/>
<link id="#lazutils.laz2_dom.TDOMNode.HasChildNodes">TDOMNode.HasChildNodes</link>
</seealso>
</element>
<element name="TXMLConfig.HasChildPaths.Result">
<short>True when the specified path has child nodes in the Document.</short>
</element>
<element name="TXMLConfig.HasChildPaths.APath">
<short>Path to the DOM node examined in the method.</short>
</element>

<element name="TXMLConfig.GetChildCount">
<short>
Gets the number of child nodes used in the DOM node at the specified path.
</short>
<descr></descr>
<seealso>
<link id="TXMLConfig.FindNode"/>
<link id="#lazutils.laz2_dom.TDOMNode.GetChildCount">GetChildCount</link>
</seealso>
</element>
<element name="TXMLConfig.GetChildCount.Result">
<short>Number of child nodes in the specified DOM node.</short>
</element>
<element name="TXMLConfig.GetChildCount.APath">
<short>Path to the DOM node examined in the method.</short>
</element>

<element name="TXMLConfig.IsLegacyList">
<short>
Indicates if the specified list was written using the format from a previous 
LazUtils version.
</short>
<descr>
<p>
In a previous LazUtils version, a Count value was written to indicate the 
number of items in the list. The return value is True if an entry named 
"Count" is found in APath with a value other than -1.
</p>
</descr>
<seealso/>
</element>
<element name="TXMLConfig.IsLegacyList.Result">
<short>True when the path includes a Count value.</short>
</element>
<element name="TXMLConfig.IsLegacyList.APath">
<short>Path the values examined in the method.</short>
</element>

<element name="TXMLConfig.GetListItemCount">
<short>
Gets the number of values with the specified name found in the given path.
</short>
<descr>
<p>
<var>GetListItemCount</var> is an <var>Integer</var> function used to get the 
number of values with the name in <var>AItemName</var> found on the path in 
<var>APath</var>.
</p>
<p>
<var>ALegacyList</var> indicates whether the list includes a "Count" value 
from a previous LazUtils version. When ALegacyList is <b>True</b>, the 
"Count" value is used (or 0 as the default). When set to <b>False</b>, a list 
of XML nodes is retrieved from APath with the name in AItemName. The length 
of the resulting list node list is used as the return value, or 0 when no XML 
nodes are found with the specified name.
</p>
</descr>
<seealso/>
</element>
<element name="TXMLConfig.GetListItemCount.Result">
<short>Number of items in the list identified by APath.</short>
</element>
<element name="TXMLConfig.GetListItemCount.APath">
<short>Path the XML nodes for the list.</short>
</element>
<element name="TXMLConfig.GetListItemCount.AItemName">
<short>Name for the list items in APath.</short>
</element>
<element name="TXMLConfig.GetListItemCount.ALegacyList">
<short>
True when the Count value from an older LazUtils version is used.
</short>
</element>

<element name="TXMLConfig.GetListItemXPath">
<short>
Gets the path specifier used to access a list item at the specified position.
</short>
<descr>
<p>
<var>GetListItemXPath</var> is a <var>String</var> class function used to get 
the path specifier used to access a list item at the specified position in 
the Document. The return value contains the path specifier constructed for 
the list item. For example:
</p>
<code>
'item0'
'item1'
'item[0]'
</code>
</descr>
<seealso/>
</element>
<element name="TXMLConfig.GetListItemXPath.Result">
<short>Path specifier for the list item at the specified position.</short>
</element>
<element name="TXMLConfig.GetListItemXPath.AName">
<short>Name for the list item.</short>
</element>
<element name="TXMLConfig.GetListItemXPath.AIndex">
<short>Position for the list item.</short>
</element>
<element name="TXMLConfig.GetListItemXPath.ALegacyList">
<short>
Indicates that array-style notation (with square brackets) is not used when 
True.
</short>
</element>
<element name="TXMLConfig.GetListItemXPath.ALegacyList1Based">
<short>Indicates if positions in the list start at 1 instead of 0.</short>
</element>

<element name="TXMLConfig.SetListItemCount">
<short>
Sets the value for the Count element in a legacy version of the class.
</short>
<descr>
<p>
<var>SetListItemCount</var> is a method used to store a Count element with 
the number of list items in APath. No actions are performed in the method 
when ALegacyList is set to <b>False</b>; the Count tag is not written or 
maintained in newer versions of the class.
</p>
<p>
SetListItemCount adds or updates the Count element to use the value in 
ACount. SetListItemCount deletes the Count element if its value is 0 (zero).
</p>
</descr>
<seealso/>
</element>
<element name="TXMLConfig.SetListItemCount.APath">
<short>Path to the XML node where the list is stored.</short>
</element>
<element name="TXMLConfig.SetListItemCount.ACount">
<short>Value for the Count element written in the method.</short>
</element>
<element name="TXMLConfig.SetListItemCount.ALegacyList">
<short>True the Count element from an older LazUtils version is used.</short>
</element>

<element name="TXMLConfig.Modified">
<short>Indicates if the XML content in the class has been modified.</short>
<descr>
<p>
<var>Modified</var> is a <var>Boolean</var> property used to indicate if the 
XML content in <var>Document</var> has been altered since it was loaded or 
created. The value in <var>Modified</var> is updated in methods like 
<var>CreateClean</var>, <var>Flush</var>, <var>SetValue</var>, 
<var>DeletePath</var>, <var>DeleteValue</var>, and 
<var>InternalCleanNode</var>.
</p>
</descr>
<seealso>
<link id="TXMLConfig.CreateClean"/>
<link id="TXMLConfig.Flush"/>
<link id="TXMLConfig.SetValue"/>
<link id="TXMLConfig.DeletePath"/>
<link id="TXMLConfig.DeleteValue"/>
<link id="TXMLConfig.InternalCleanNode"/>
</seealso>
</element>

<element name="TXMLConfig.InvalidatePathCache">
<short>
Removes cached DOM nodes for paths in the XML configuration file.
</short>
<descr>
<p>
<var>InvalidatePathCache</var> is a procedure used to invalidate all of the 
cached references to DOM nodes used in the class instance. 
<var>InvalidatePathCache</var> calls the <var>InvalidateCacheTilEnd</var> 
method starting at position 0 in the internal array of DOM nodes used for the 
cache.
</p>
<p>
<var>InvalidatePathCache</var> is used in the implementation of methods like: 
<var>DeletePath</var>, <var>ReadXMLFile</var>, <var>FreeDoc</var>, 
<var>InternalCleanNode</var>, and <var>SetFilename</var>.
</p>
</descr>
<seealso>
<link id="TXMLConfig.InvalidateCacheTilEnd"/>
<link id="TXMLConfig.DeletePath"/>
<link id="TXMLConfig.ReadXMLFile"/>
<link id="TXMLConfig.FreeDoc"/>
<link id="TXMLConfig.InternalCleanNode"/>
<link id="TXMLConfig.Filename"/>
</seealso>
</element>

<element name="TXMLConfig.Filename">
<short>
File name used to read or write the XML content in the class instance.
</short>
<descr>
<p>
<var>Filename</var> is a <var>String</var> property which specifies the file 
name on the local file system where the content for the XML configuration 
file is stored. Changing the value in <var>Filename</var> causes the DOM node 
cache to be cleared by calling the <var>InvalidatePathCache</var> method.
</p>
<p>
If <var>Document</var> contains a valid <var>TXMLDocument</var> instance, the 
<var>Flush</var> method is called to write any pending changes to disk. The 
<var>FreeDoc</var> method is called to re-initialize the <var>Document</var> 
instance. The XML content in <var>Document</var> is then reloaded using the 
file or string content as required.
</p>
<remark>
No actions are performed in the method when the value in <var>Filename</var> 
is assigned as the component is loaded using the LCL streaming mechanism.
</remark>
</descr>
<seealso>
<link id="TXMLConfig.InvalidatePathCache"/>
<link id="TXMLConfig.Flush"/>
<link id="TXMLConfig.FreeDoc"/>
<link id="TXMLConfig-PathSyntax"/>
</seealso>
</element>

<element name="TXMLConfig.Document">
<short>XML document used for the class instance.</short>
<descr>
<p>
<var>Document</var> is a read-only <var>TXMLDocument</var> property which 
contains the XML content in the configuration file. <var>Document</var> is a 
hierarchical sequence of DOM nodes which represent the paths and values for 
configuration data. DOM nodes are added and deleted in <var>Document</var> 
using a path specifier which represents the hierarchical structure for the 
XML content. See the <link id="TXMLConfig-PathSyntax">TXMLConfig Path 
Syntax</link> topic for more information about path specifiers in TXMLConfig.
</p>
<p>
The <var>TXMLDocument</var> instance in Document is created and freed in 
methods like <var>Clear</var>, <var>FreeDoc</var>, 
<var>CreateConfigNode</var>, and <var>SetFilename</var>.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Clear"/>
<link id="TXMLConfig.FreeDoc"/>
<link id="TXMLConfig.Filename"/>
<link id="TXMLDocument"/>
</seealso>
</element>

<element name="TXMLConfig.ReadFlags">
<short>TXMLReaderFlags for the XML configuration file.</short>
<descr>
<p>
<var>ReadFlags</var> is a <var>TXMLReaderFlags</var> property which 
represents the options enabled when reading the XML content for the 
configuration file. Values in <var>ReadFlags</var> are passed as an argument 
in <var>ReadFromStream</var> and <var>ReadXMLFile</var> to routines used to 
read the XML content.
</p>
<p>
The set in <var>ReadFlags</var> is initialized in the <var>Create</var> 
constructor to the following enumeration values:
</p>
<ul>
<li>xrfAllowLowerThanInAttributeValue</li>
<li>xrfAllowSpecialCharsInAttributeValue</li>
</ul>
<p>
See <var>TXMLReaderFlags</var> for a description of enumeration values and 
their meanings.
</p>
</descr>
<seealso>
<link id="TXMLReaderFlags"/>
<link id="TXMLConfig.ReadFromStream"/>
<link id="TXMLConfig.ReadXMLFile"/>
<link id="TXMLConfig.Create"/>
</seealso>
</element>

<element name="TXMLConfig.WriteFlags">
<short>TXMLWriteFlags for the XML configuration file.</short>
<descr>
<p>
<var>WriteFlags</var> is a <var>TXMLWriteFlags</var> property which 
represents the options enabled when writing the XML content for the 
configuration file. Values in <var>WriteFlags</var> are passed as an argument 
in <var>WriteToSteam</var> and <var>WriteXMLFile</var> to routines used to 
write the XML content.
</p>
<p>
The set in <var>WriteFlags</var> is initialized in the <var>Create</var> 
constructor to the following enumeration values:
</p>
<ul>
<li>xwfSpecialCharsInAttributeValue</li>
</ul>
<p>
See <var>TXMLWriterFlags</var> for a description of enumeration values and 
their meanings.
</p>
</descr>
<seealso>
<link id="TXMLConfig.Create"/>
<link id="TXMLConfig.WriteToStream"/>
<link id="TXMLConfig.WriteXMLFile"/>
<link id="TXMLWriterFlags"/>
</seealso>
</element>

<element name="TRttiXMLConfig">
<short>Implements an XML configuration file with RTTI support.</short>
<descr>
<p>
<var>TRttiXMLConfig</var> is a <var>TXMLConfig</var> descendant which 
implements support for reading and writing objects and their property values 
using RTTI (Run-Time Type Information). TRttiXMLConfig extends the ancestor 
class to include methods used to read and write objects, or just specific 
properties, using path specifiers supported in the class. See the <link 
id="TXMLConfig-PathSyntax">TXMLConfig Path Syntax</link> topic for more 
information about path specifiers in TXMLConfig.
</p>
<p>
Type information provided by RTTI (Run-Time Type Information) is used to 
determine the value and formatting used for supported data types. Supported 
RTTI type kinds include:
</p>
<ul>
<li>tkChar</li>
<li>tkWChar</li>
<li>tkSString</li>
<li>tkLString</li>
<li>tkAString</li>
<li>tkInteger</li>
<li>tkFloat</li>
<li>tkEnumeration</li>
<li>tkSet</li>
<li>tkBool</li>
<li>tkClass</li>
</ul>
<remark>
Properties must be implemented with both getter and setter procedures to be 
available for use in <var>TRttiXMLConfig</var>. Properties which do not use 
both types of procedure are ignored.
</remark>
</descr>
<seealso>
<link id="TXMLConfig"/>
<link id="TXMLConfig-PathSyntax"/>
</seealso>
</element>

<element name="TRttiXMLConfig.WriteProperty">
<short>
Writes a property value from an object to the specified path in the XML 
Document.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TRttiXMLConfig.WriteProperty.Path">
<short>Path to the DOM node where property values are stored.</short>
</element>
<element name="TRttiXMLConfig.WriteProperty.Instance">
<short>Object instance with property value examined in the method.</short>
</element>
<element name="TRttiXMLConfig.WriteProperty.PropInfo">
<short>
RTTI property information used to get the value written in the method.
</short>
</element>
<element name="TRttiXMLConfig.WriteProperty.DefInstance">
<short>
Object instance used to provide a default value for the property.
</short>
</element>
<element name="TRttiXMLConfig.WriteProperty.OnlyProperty">
<short>
List of property names included in the process; all properties are included 
when omitted.
</short>
</element>

<element name="TRttiXMLConfig.ReadProperty">
<short>
Stores the value for the specified path to a property in an object instance.
</short>
<descr></descr>
<seealso></seealso>
</element>
<element name="TRttiXMLConfig.ReadProperty.Path">
<short>Path where the value is stored in the Document.</short>
</element>
<element name="TRttiXMLConfig.ReadProperty.Instance">
<short>Object instance where the value is stored.</short>
</element>
<element name="TRttiXMLConfig.ReadProperty.PropInfo">
<short>RTTI property information for the update property.</short>
</element>
<element name="TRttiXMLConfig.ReadProperty.DefInstance">
<short>Object instance with the default value for the property.</short>
</element>
<element name="TRttiXMLConfig.ReadProperty.OnlyProperty">
<short>
List of property names included in the process; all properties are included 
when omitted.
</short>
</element>

<element name="TRttiXMLConfig.WriteObject">
<short>
Stores property values from an object to the specified path in the document.
</short>
<descr></descr>
<seealso>
<link id="TRttiXMLConfig.WriteProperty"/>
<link id="TRttiXMLConfig.ReadObject"/>
</seealso>
</element>
<element name="TRttiXMLConfig.WriteObject.Path">
<short>Path used as a container for property values from the object.</short>
</element>
<element name="TRttiXMLConfig.WriteObject.Obj">
<short>Object instance with property values written in the method.</short>
</element>
<element name="TRttiXMLConfig.WriteObject.DefObject">
<short>Object instance with the default values for the properties.</short>
</element>
<element name="TRttiXMLConfig.WriteObject.OnlyProperty">
<short>
List of property names included in the process, or all properties when 
omitted.
</short>
</element>

<element name="TRttiXMLConfig.ReadObject">
<short>
Stores property values from the specified path to an object instance.
</short>
<descr></descr>
<seealso>
<link id="TRttiXMLConfig.ReadProperty"/>
<link id="TRttiXMLConfig.WriteObject"/>
</seealso>
</element>
<element name="TRttiXMLConfig.ReadObject.Path">
<short>
Path with the property values loaded into the object in the method.
</short>
</element>
<element name="TRttiXMLConfig.ReadObject.Obj">
<short>Object instance where property values are stored.</short>
</element>
<element name="TRttiXMLConfig.ReadObject.DefObject">
<short>
Object instance with default values used for properties in the method.
</short>
</element>
<element name="TRttiXMLConfig.ReadObject.OnlyProperty">
<short>
List of property names included in the process, or all properties when 
omitted.
</short>
</element>

<element name="CompareDomNodeNames">
<short>Compares the names for the specified DOM nodes.</short>
<descr>
<p>
<var>CompareDomNodeNames</var> is an <var>Integer</var> function used to 
compare the pointers to DOM nodes specified in <var>DOMNode1</var> and 
<var>DOMNode2</var>. CompareDomNodeNames calls <var>CompareStr</var> to 
examine the names in the pointers. The return value contains the relative 
sort order for the node names as determined in the <var>CompareStr</var> 
routine.
</p>
<p>
CompareDomNodeNames is the routine passed as an argument to MergeSortLen in 
the <var>TNodeCache.RefreshChildren</var> method.
</p>
</descr>
<seealso>
<link id="TXMLConfig"/>
</seealso>
</element>
<element name="CompareDomNodeNames.Result">
<short>Relative sort order for the specified node pointers.</short>
</element>
<element name="CompareDomNodeNames.DOMNode1">
<short>Pointer to a DOM node examined in the routine.</short>
</element>
<element name="CompareDomNodeNames.DOMNode2">
<short>Pointer to a DOM node examined in the routine.</short>
</element>

<topic name="TXMLConfig-Using">
<short>Using TXMLConfig.</short>
<descr>
<p>
<b>What is TXMLConfig</b>
</p>
<p>
TXMLConfig provides a simple mechanism for storing and retrieving values in 
an XML file. It is intended for use with configuration setting and option 
values. It is also used as the ancestor for an RTTI-enabled version which 
store values for object properties using the facilities provided by Run-Time 
Type Information (<b>RTTI</b>).
</p>
<p>
Using TXMLConfig is easier than building DOM nodes, child nodes, and 
attribute values in a TXMLDocument instance. This ease of use is made 
possible by its use of path specifiers to describe the hierarchy of elements 
and attributes in the XML document. See <link 
id="TXMLConfig-PathSyntax">TXMLConfig Path Syntax</link> for a description of 
the path specifier syntax.
</p>
<p>
Path specifiers are passed as arguments to the GetValue and SetValue methods 
which read and write values in the XML document. The methods are overloaded 
to support the use of String, Integer, Boolean, and TRect data types in the 
value.
</p>
<p>
<b>Creating Instances of TXMLConfig</b>
</p>
<p>
Various constructors are available in the class to create TXMLConfig 
instances. Specifically, they are the Create, CreateClean, and 
CreateWithSource methods. CreateClean allows an empty XML document to be 
created that is ultimately stored in the specified file name. 
CreateWithSource creates an XML document with content specified in a String 
argument passed to the constructor.
</p>
<p>
Use the Filename property to change the file name on the local file system 
where the XML document is stored. Use the Modified property to determine if 
the XML content in the document has been altered since it was created or 
loaded.
</p>
<p>
<b>Loading and Saving XML Content</b>
</p>
<p>
If the XML document was created was a destination file name, it can be 
written to disk using the Flush method. TXMLConfig includes other methods 
that can be used to read or write the XML content in the document to/from a 
specific file name, or to a TStream instance. Used the ReadXMLFile and 
WriteXMLFile methods to read and write XML content to a file. Use 
ReadFromStream and WriteToSteam to read and write XML content using a TStream 
instance.
</p>
<code>
// load the content in an existing configuration file
ACfg := TXMLConfig.Create('/path/to/file.xml');
</code>
<code>
//create an empty XML configuration file
ACfg := TXMLConfig.CreateClean('/path/to/file.xml');
</code>
<code>
//create an XML configuration file with the specified content, same as CreateClean
ACfg := TXMLConfig.CreateWithSource('/path/to/file.xml', '&lt;CONFIG&gt;&lt;/CONFIG&gt;');
</code>
<code>
// stores changes to disk
ACfg.Flush;
</code>
<code>
// write XML content to a different file
ACfg.WriteXMLFile('/another/path/to/file.xml');
</code>
<code>
// write XML content to a stream
AStream := TStream.Create;
ACfg.WriteToSteam(AStream);
</code>
<code>
ACfg := TXMLConfig.CreateClean('myappconfig.xml');
ACfg.SetValue('settings/backup/path', './backup');
ACfg.SetValue('settings/backup/enabled', True);
ACfg.SetValue('settings/spellcheck/enabled', False);

if ACfg.Modified then ACfg.Flush;
ACfg.Free;
</code>
<p>
The <file>myappconfig.xml</file> file contains the following:
</p>
<code>
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;CONFIG&gt;
  &lt;settings&gt;
    &lt;backup path="./backup" enabled="True"/&gt;
    &lt;spellcheck enabled="False"/&gt;
  &lt;/settings&gt;
&lt;/CONFIG&gt;
</code>
</descr>
<seealso>
<link id="TXMLConfig"/>
<link id="TRttiXMLConfig"/>
<link id="TXMLConfig-PathSyntax"/>
</seealso>
</topic>

<topic name="TXMLConfig-PathSyntax">
<short>TXMLConfig Path Syntax.</short>
<descr>
<p>
Path specifiers in TXMLConfig are used to get or set a value in the XML 
configuration file. Its syntax describes the hierarchy of elements and 
attributes needed to access a value in the XML document. It consists of a 
relative path to a DOM node and an attribute name where the value is stored.
</p>
<p>
The path specifier should NOT include a root node (or document element name); 
that is assumed to be a DOM node with the name "CONFIG". Use of the root node 
in the specifier is invalid in TXMLConfig.
</p>
<p>
Element and attributes names in the hierarchy are separated by the '/' 
(Forward Slash) character. The final identifier in the path specifier is the 
attribute name where a value is stored in the XML document.
</p>
<p>
Lists or arrays of elements can be read /written using a path specifier that 
includes notation which indicates the ordinal position of the element. For 
example:
</p>
<code>
ACfg.SetValue('list/items/item[0]/name', 'itemA');
ACfg.SetValue('list/items/item[0]/value', 'valueA');
ACfg.SetValue('list/items/item[1]/name', 'itemB');
ACfg.SetValue('list/items/item[1]/value', 'valueB');
ACfg.SetValue('list/items/item[2]/name', 'itemC');
ACfg.SetValue('list/items/item[2]/value', 'valueC');
</code>
<p>
Results in the following XML content:
</p>
<code>
&lt;list&gt;
  &lt;items&gt;
    &lt;item name="itemA" value="valueA"/&gt;
    &lt;item name="itemB" value="valueB"/&gt;
    &lt;item name="itemC" value="valueC"/&gt;
  &lt;/items&gt;
&lt;/list&gt;
</code>
<remark>
There is no overloaded variant of the SetValue method which handles writing a 
TRect data type in the current implementation. You must write the Top, Left, 
Right, and Bottom coordinates as separate calls to SetValue using the desired 
path.
</remark>
<remark>
Contrary to suggestions in source code comments, the syntax used for path 
specifiers in TXMLConfig is not fully XPath-compatible.
</remark>
</descr>
<seealso>
<link id="TXMLConfig"/>
<link id="TXMLConfig-Using"/>
</seealso>
</topic>

</module>
<!-- Laz2_XMLCfg -->
</package>
</fpdoc-descriptions>