File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,31 @@ You can also save the file to disk:
7878TXmlBuilder.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 ) .
You can’t perform that action at this time.
0 commit comments