News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Kore Nordmann's Blog:
Generating XML schemas from XML data
March 29, 2011 @ 12:16:05

In a new post to his blog Kore Nordmann talks about a tool he's developed that will "learn" XML schemas based on a document it's given. The tool, the XML-schema-learner, makes it as simple as a one-line command to generate the DTD file and transform it into a schema.

You can get the "XML schema learner" from my Github account: https://github.com/kore/XML-Schema-learner. Just clone it, and you can run the tests, or use the learn command to infer XML schemas from XML data.

He includes an example XML definition and the resulting DTD that the tool generates from it, defining each of the elements and attributes each can have. The tool can then take this DTD file and generate an XSD file, creating complex and simple types that match the original data.

1 comment voice your opinion now!
generate xml data xmlschemalearner github dtd xsd


blog comments powered by Disqus

Similar Posts

Christian Weiske's Blog: Importing huge XML files using PHP5 - efficiently and conveniently

Joshua Thijssen: Decoding TLS with PHP

Henri Berguis' Blog: Literate Programming With PHP

International PHP Magazine: IPM Poll Question: Which is your Favorite CMS written in PHP?

Tim Koschuetzki's Blog: How to put Combined Fields Into CakePHP's Model->generateList()


Community Events











Don't see your event here?
Let us know!


package component security facebook composer introduction opinion unittest language install symfony2 framework hhvm podcast overview threedevsandamaybe release application code hack

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework