#42981 [Opn->Bgs]: Schema validation support for SimpleXML
| From: | johannes@php.net | Date: | Mon, 15 Oct 2007 19:33:59 +0000 |
| Subject: | #42981 [Opn->Bgs]: Schema validation support for SimpleXML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-118568@lists.php.net to get a copy of this message | ||
ID: 42981
Updated by: johannes@php.net
Reported By: freddie at witherden dot org
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 5.2.4
New Comment:
.
Previous Comments:
------------------------------------------------------------------------
[2007-10-15 19:33:32] johannes@php.net
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.
------------------------------------------------------------------------
[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