Php – XSD transformation into XML

PHPxmlxsd

How can I create a (empty) XML file trough a existing XSD schema?
Which PHP (5.3) functions are necessary?

Best Answer

I was also searching on how to "initialize" directly a DOM XML object that corresponds to an existing XSD in PHP. This allows for easily "feeding" this empty XML file with my own data. Found only ONE method that does it, the SDO DAS XML extension of PHP

http://www.php.net/manual/en/sdo-das-xml.examples.php

see example #2. Unfortunately the extension is not by default in PHP 5.3, you have to add it through PECL, which does't work on my Windows PC, so I could not test it.