Här är en länk till Microsoft's artikel om XmlSampleGenerator:
Generating XML Documents from XML Schemas
>...
>Goals of the XML Generator
> 1. To generate an XML sample that is easy to read
> and illustrates the use of various constructs in the given XML Schema.
> 2. The generated document should be valid with respect to the schema.
> If validity can not be achieved, it should be signaled by adding
> comments to the generated document.
> 3. The generation should be deterministic—that is, the same schema
> will generate the same instance document.
>...
/ Tomas