Alex Rivera | Logout

How to derive DTD (or other XML spec format) from XML file samples

Asked 2009-11-29T10:43:11.090
12

Do you know of a tool that will derive a DTD (or other XML structure specification format) from a sample set of XML files?

Currently the only (automatic) validation we have for an xml encoded DSL is a legacy parser written in Perl, but for consistency reasons all perl code must be ported to C-sharp.

Edit
Report

1 Answer

1

XMLMax editor will create an XSD from an XML file. The free trial(no registraton/small download file) will do this for you. If you want to do this in code, .NET framework has an XmlSchemaInference class that automatically creates an XSD from an xml file.

answered 2009-11-30T00:29:10.213

Your Answer