MyDynamicXmlBuilder [deprecated]
Dynamic XML construction API for .NET written on C#.
- .NET Standard
- Install from Nuget
Install-Package MyDynamicXmlBuilder
- 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("[email protected]");
}));
Console.WriteLine(xml.Build());