Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
viniciussanchez authored Feb 10, 2022
1 parent 71a9f60 commit 4b8e56e
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
<?xml version="1.0" encoding="UTF-8"?>
<mtDeveloper>
<firstName>Vinicius</firstName>
<lastName>Sanchez</lastName>
<mvp>True</mvp>
</mtDeveloper>
```

## ⚠️ License

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

0 comments on commit 4b8e56e

Please sign in to comment.