Good morning/afternoon/evening list I have created a patch to the libxml/DOM extensions to expose the functionality for creating default/fixed values from the XSD schema when validating a document. I have created a PR on GitHub which can be viewed here: https://github.com/php/php-src/pull/325
The patch adds a second argument to DOMDocument::schemaValidate() and DOMDocument::schemaValidateSource(), and integer designed to be a bitmask of flags. It also adds a new constant, LIBXML_SCHEMA_CREATE. The default behaviour is backwards compatible (i.e. it doesn't do anything unless you pass the flag). The patch has been built and tested successfully with the current 5.5 branch sources, and should backport nicely to 5.4. The patch requires libxml 2.6.14 to work, and this has been accounted for. Let me know what you think. Best Regards Chris Wright (DaveRandom) -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php