ID: 42981 Updated by: [EMAIL PROTECTED] Reported By: freddie at witherden dot org Status: Open Bug Type: Feature/Change Request Operating System: Any PHP Version: 5.2.4 New Comment:
SimpleXML is a simple DOM-wrapper, therefore you can simply convert a SimpleXML document to a DOMDocument without any costs (and vice versa, too), see the documentation for more. Previous Comments: ------------------------------------------------------------------------ [2007-10-15 18:28:01] freddie at witherden dot org Description: ------------ I would be nice if it were possible to have SimpleXML validate a document against a schema when you create a new instance of it (optional parameter?). Currently one has to use the DOM, then assuming it is valid convert it to a SimpleXML document. Often if one just wants to read/process a document SimpleXML is a much nicer solution than the full-blown DOM. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=42981&edit=1