Note: This article was originally published at Planet PHP
on 24 May 4060.
Already some time ago I published a tool on Github which allows you to
generate (or learn) XML schemas from XML data. You provide the tool with a
set of XML files and you get a nice, human readable, XML schema (XSD, DTD, a€¦)
from that. Read more for the details.