DialectSoftware.XML.Dynamics
2.0.1
dotnet add package DialectSoftware.XML.Dynamics --version 2.0.1
NuGet\Install-Package DialectSoftware.XML.Dynamics -Version 2.0.1
<PackageReference Include="DialectSoftware.XML.Dynamics" Version="2.0.1" />
paket add DialectSoftware.XML.Dynamics --version 2.0.1
#r "nuget: DialectSoftware.XML.Dynamics, 2.0.1"
// Install DialectSoftware.XML.Dynamics as a Cake Addin #addin nuget:?package=DialectSoftware.XML.Dynamics&version=2.0.1 // Install DialectSoftware.XML.Dynamics as a Cake Tool #tool nuget:?package=DialectSoftware.XML.Dynamics&version=2.0.1
Example:
http://www.service-architecture.com/articles/object-oriented-databases/xml_file_for_complex_data.html
dynamic obj = DynamicParser.Parse(xml);
Assert.IsTrue((string)obj.product.description == "Cardigan Sweater");
foreach (dynamic catalog in obj.product.catalog_item)
{
foreach (dynamic size in catalog.size)
{
Assert.IsNotNull(size.description);
}
}
dynamic obj = DynamicParser.Parse(xml);
foreach (dynamic catalog in obj.product.Select("*[starts-with(name(.), 'catalog')]"))
{
foreach (dynamic size in catalog.Select("*[starts-with(name(.), 'size')]", true))
{
foreach (dynamic s in size)
{
Assert.IsNotNull(s.description);
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
This package has no dependencies.
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 |
---|---|---|
2.0.1 | 1,959 | 8/25/2015 |
This release does only support schemas with a single namespaces in the hierarchy.