[PATCH] Add schema default/fixed value support in DOM

From: Date: Thu, 11 Apr 2013 17:51:23 +0000
Subject: [PATCH] Add schema default/fixed value support in DOM
Groups: php.internals 
Request: Send a blank email to internals+get-67053@lists.php.net to get a copy of this message
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)

« previous php.internals (#67053) next »