Error!
Success!

Use INFER.EXE to Create XML Schemas

0
kicks

Use INFER.EXE to Create XML Schemas  (Unpublished)

In my post, OpenXmlCodeTester: Validating Code in Open XML Documents I used XSD to validate the build instructions (which are XML that you place in content controls). INFER.EXE, available at XML Downloads, is your best friend for putting together schemas. This isn't news, but I was chatting with one of my dev friends here at Microsoft, and he wasn’t aware of the existence of this tool, so I’m calling attention to it. Its use couldn’t be simpler – create a directory, put examples of all varieties of your XML documents to validate in the directory, CD to the directory, and run INFER.EXE. It outputs a schema that correctly specifies if attributes or elements can be repeated, if they are optional, etc.:


Kicked By:
Drop Kicked By: