Use INFER.EXE to Create XML Schemas(blogs.msdn.com)

submitted by wisemxwisemx(8074) 3 years, 8 months ago

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.:

add a comment |category: |Views: 32

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story