Skip to content
F# C# Other
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.
.paket
CSharpTests better invalid than throwing May 4, 2016
docs
lib
src/AntaniXml
tests/AntaniXml.Tests
.gitattributes
.gitignore
.travis.yml Trigger Travis build Feb 5, 2015
AntaniXml.sln
LICENSE
LICENSE.txt added .txt extension to LICENSE file Oct 19, 2013
README.md documenting the new public API Aug 30, 2015
RELEASE_NOTES.md
Samples.xml Bump version to 0.5.0 Aug 30, 2015
appveyor.yml
build.cmd
build.fsx
build.sh Updates for build.sh May 18, 2015
paket.dependencies
paket.lock

README.md

Issue Stats Issue Stats

AntaniXml

AntaniXml is a .NET library for generating random xml based on a schema. This is useful mainly for testing - especially to produce stress test data - but also for unit and property based testing. Of course generating samples may also help in figuring out concretely what kind of xml is defined by a certain schema.

The API is straightforward, given a schema file you have to choose an element definition to use as a template. Then you call the Generate method to get the desired number of samples:

var samples = Schema.CreateFromUri("po.xsd")
    .Generator(new XmlQualifiedName("purchaseOrder"))
    .Generate(10);

You can also customize the generators. Comprehensive documentation is available on the project site.

You can’t perform that action at this time.