FluentDataBuilder.Xml
1.1.44
See the version list below for details.
dotnet add package FluentDataBuilder.Xml --version 1.1.44
NuGet\Install-Package FluentDataBuilder.Xml -Version 1.1.44
<PackageReference Include="FluentDataBuilder.Xml" Version="1.1.44" />
<PackageVersion Include="FluentDataBuilder.Xml" Version="1.1.44" />
<PackageReference Include="FluentDataBuilder.Xml" />
paket add FluentDataBuilder.Xml --version 1.1.44
#r "nuget: FluentDataBuilder.Xml, 1.1.44"
#:package FluentDataBuilder.Xml@1.1.44
#addin nuget:?package=FluentDataBuilder.Xml&version=1.1.44
#tool nuget:?package=FluentDataBuilder.Xml&version=1.1.44
FluentDataBuilder
![]()
A fluent data builder for json and xml
DataBuilder Output Libraries
FluentDataBuilder has some NuGet-Libraries to generate output:
Examples
System.Text.Json - FluentDataBuilder.Json
install the nuget FluentDataBuilder.Json and follow the general DataBuilder steps. the following code is a sample for the initialization with System.Text.Json.
IDataBuilder builder = new DataBuilder();
...
JsonDocument jsonResult = builder.Build();
Newtonsoft.Json - FluentDataBuilder.NewtonsoftJson
install the nuget FluentDataBuilder.NewtonsoftJson and follow the general DataBuilder steps. the following code is a sample for the initialization with Newtonsoft.Json.
IDataBuilder builder = new DataBuilder();
...
JObject jsonResult = builder.Build();
Microsoft.Extensions.Configuration - FluentDataBuilder.Microsoft.Extensions.Configuration
With this package you can store the DataBuilder instance directly as an IConfiguration instance.
install the nuget FluentDataBuilder.Microsoft.Extensions.Configuration and follow the general DataBuilder steps. the following code is a sample for the initialization with Newtonsoft.Json.
IDataBuilder builder = new DataBuilder();
...
IConfiguration configuration = builder.ToConfiguration();
System.Xml - FluentDataBuilder.Xml
install the nuget FluentDataBuilder.Xml and follow the general DataBuilder steps. the following code is a sample for the initialization with System.Xml.
IDataBuilder builder = new DataBuilder();
...
XmlDocument xmlDocument = builder.Build();
How to create Data Objects
First you need to create an instance:
IDataBuilder builder = new DataBuilder();
Use the Add-Method to add data:
add simple properties
builder.Add("StringProperty", "a value");
builder.Add("NumericProperty", 12345);
builder.Add("BooleanProperty", true);
result (in json):
{
"StringProperty": "a value",
"NumericProperty": 12345,
"BooleanProperty": true
}
add arrays
builder.Add("ListProperty", new List<string> { "this", "is", "a", "test" });
builder.Add("ArrayProperty", new string[] { "this", "is", "a", "test" });
builder.Add("MixedListProperty", new List<object> { "value", 123, true, 456.78 });
result (in json):
{
"ListProperty":
[
"this",
"is",
"a",
"test"
],
"ArrayProperty":
[
"this",
"is",
"a",
"test"
],
"MixedListProperty":
[
"value",
123,
true,
456.78
]
}
add new object
builder.Add("ObjectProperty", new DataBuilder()
.Add("StringProperty", "another value")
.Add("NumericProperty", 67890)
.Add("BooleanProperty", false));
result (in json):
{
"ObjectProperty":
{
"StringProperty": "another value",
"NumericProperty": 67890,
"BooleanProperty": false
}
}
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net6.0
- FluentDataBuilder (>= 1.1.36)
-
net7.0
- FluentDataBuilder (>= 1.1.36)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.0.130 | 222 | 11/6/2025 |
| 8.0.129 | 218 | 11/5/2025 |
| 8.0.128 | 213 | 11/5/2025 |
| 8.0.127 | 205 | 11/5/2025 |
| 8.0.126 | 214 | 11/5/2025 |
| 8.0.125 | 222 | 11/5/2025 |
| 8.0.124 | 210 | 11/4/2025 |
| 8.0.123 | 212 | 11/4/2025 |
| 8.0.114 | 381 | 6/11/2025 |
| 8.0.113 | 193 | 4/18/2025 |
| 8.0.112 | 195 | 1/30/2025 |
| 8.0.108 | 208 | 10/16/2024 |
| 1.2.107 | 203 | 7/24/2024 |
| 1.2.106 | 189 | 7/24/2024 |
| 1.2.105 | 218 | 4/28/2024 |
| 1.2.104 | 291 | 12/24/2023 |
| 1.2.103 | 243 | 12/23/2023 |
| 1.2.84 | 198 | 12/6/2023 |
| 1.2.83 | 173 | 12/6/2023 |
| 1.1.44 | 200 | 9/17/2023 |