Skip to content

Commit 4b8e56e

Browse files
Update README.md
1 parent 71a9f60 commit 4b8e56e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,31 @@ You can also save the file to disk:
7878
TXmlBuilder.New.SaveToFile('C:\sample.xml');
7979
```
8080

81+
## ⚡️ DataSet Adapter
82+
83+
```pascal
84+
uses Xml.Builder;
85+
86+
begin
87+
mtDeveloper.Append;
88+
mtDeveloperfirstName.AsString := 'Vinicius';
89+
mtDeveloperlastName.AsString := 'Sanchez';
90+
mtDevelopermvp.AsBoolean := True;
91+
mtDeveloper.Post;
92+
93+
mmXml.Lines.Text := TXmlBuilder.Adapter(mtDeveloper).Xml;
94+
end;
95+
```
96+
Result:
97+
```xml
98+
<?xml version="1.0" encoding="UTF-8"?>
99+
<mtDeveloper>
100+
<firstName>Vinicius</firstName>
101+
<lastName>Sanchez</lastName>
102+
<mvp>True</mvp>
103+
</mtDeveloper>
104+
```
105+
81106
## ⚠️ License
82107

83108
`XML Builder` is free and open-source software licensed under the [MIT License](https://github.com/viniciussanchez/xml-builder/blob/master/LICENSE).

0 commit comments

Comments
 (0)