Dialect Software LLC XML Dynamics NuGet Package

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);
}
}
}.




Got any Dialect Software LLC XML Dynamics Question?





Info

Version: 2.0.1
Author(s): Dialect Software LLC
Last Update: Tuesday, August 25, 2015
.NET Fiddle: Create the first Fiddle
Project Url: http://www.dialectsoftware.com/
NuGet Url: https://www.nuget.org/packages/DialectSoftware.XML.Dynamics


Install
Install-Package DialectSoftware.XML.Dynamics
dotnet add package DialectSoftware.XML.Dynamics
paket add DialectSoftware.XML.Dynamics
DialectSoftware.XML.Dynamics Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.5

avg-downloads-per-day

0

days-since-last-release

3376