Skip to content
Dynamic XML construction API for .NET written on C#.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
icon
src
.gitignore
LICENSE
README.md
appveyor.yml

README.md

MyDynamicXmlBuilder

NuGet version Build status

Dynamic XML construction API for .NET written on C#.

Requirements

  • .NET Framework 4.5.2

Installation

  • Install from Nuget Install-Package MyDynamicXmlBuilder

Examples!

  • Nodes
var xml = XmlBuilder.Create();

xml.foo("bar");

Console.WriteLine(xml.Build());
  • Attributes
var xml = XmlBuilder.Create();

xml.user("Kiro", new { username = "zlatnia", age = 50 });

Console.WriteLine(xml.Build());
  • Nesting via delegates
var xml = XmlBuilder.Create();

xml.user(XmlBuilder.Section(u => {
    u.firstname("Kiro");
    u.lastname("Kirilov");
    u.username("jdoe@example.org");
}));

Console.WriteLine(xml.Build());
You can’t perform that action at this time.