From 4b8e56e84cd16fb11018db9323f8b6d1f2cf0df5 Mon Sep 17 00:00:00 2001 From: Vinicius Sanchez Date: Thu, 10 Feb 2022 15:02:08 -0300 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index d31e027..3202890 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,31 @@ You can also save the file to disk: TXmlBuilder.New.SaveToFile('C:\sample.xml'); ``` +## ⚡️ DataSet Adapter + +```pascal +uses Xml.Builder; + +begin + mtDeveloper.Append; + mtDeveloperfirstName.AsString := 'Vinicius'; + mtDeveloperlastName.AsString := 'Sanchez'; + mtDevelopermvp.AsBoolean := True; + mtDeveloper.Post; + + mmXml.Lines.Text := TXmlBuilder.Adapter(mtDeveloper).Xml; +end; +``` +Result: +```xml + + + Vinicius + Sanchez + True + +``` + ## ⚠️ License `XML Builder` is free and open-source software licensed under the [MIT License](https://github.com/viniciussanchez/xml-builder/blob/master/LICENSE).