-
Notifications
You must be signed in to change notification settings - Fork 9
tucaz/XmlToObjectParser
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A simple dynamic library implemented in C# 4.0 to deal with XML structure Assume the following XML sample: _sampleXml = @"<?xml version=""1.0"" encoding=""ISO-8859-1""?> <catalog> <cd country=""USA""> <title>Empire Burlesque</title> <artist>Bob Dylan</artist> <price>10.90</price> </cd> <cd country=""UK""> <title>Hide your heart</title> <artist>Bonnie Tyler</artist> <price>10.0</price> </cd> <cd country=""USA""> <title>Greatest Hits</title> <artist>Dolly Parton</artist> <price>9.90</price> </cd> </catalog>"; With XmlToObjectParser is possible to traversal this XML like this: var numberOfCDsinCatalog = catalog.catalog.cd.Count; //Results in the number Three var titleFromUKCD = catalog.catalog.cd[1].title; // "Hide your heart" For more details take a look at the documentation on the Wiki: https://github.com/tucaz/XmlToObjectParser/wiki/Getting-Started *Special thanks to @MemphisBR for reviewing the code
About
A simple dynamic library implemented in C# 4.0 to deal with XML structures
Resources
Stars
Watchers
Forks
Packages 0
No packages published