Home » XML » XML_sql2xml » Bug #6975
Problem with DOM and DOM_XML (php_domxml.php extension in wamp installation)
Details
| Request #6975 | Problem with DOM and DOM_XML (php_domxml.php extension in wamp installation) |
|---|---|
| Submitted | 2006-03-01 16:56 UTC |
| From | u_colmenar at altran-tech dot net |
| Status | Bogus |
| Package | XML_sql2xml |
| PHP Version | 5.1.1 |
| OS | WindowsXP |
| Roadmaps | (Not assigned) |
Comments
[2006-03-01 16:56 UTC] u_colmenar at altran-tech dot net
Description:
------------
DOM extension is installed with PHP 5 or higher.
php_domxml.php is necessary to work with XML_sql2xml
because domxml_new_xmldoc fonction is deprecated!!
There are some compatibility problems with DOM and DOMXML (php_domxmd.php) extension activated.
The DomDocument objets don't work !
Test script:
---------------
$sql2xml = new xml_sql2xml($Db);
$XmlString = $sql2xml->getxml($Sql);
$this->XmlString = $XmlString;
//echo $XmlString;
#chargement du fichier XSL:
$proc_xsl = new DomDocument();
$proc_xsl->load($fichier_xsl);
#chargement du fichier XML:
$proc_xml = new DomDocument();
$proc_xml->load($fichier_xml);
#processeur XSLT:
$xslt = new XsltProcessor();
$xslt->importStylesheet($proc_xsl);
$obj = $xslt->transformToDoc($proc_xml);
$output = $obj->saveXML();
Actual result:
--------------
Warning: domdocument::domdocument() expects at least 1 parameter, 0 given in c:\wamp\www\SITE\Document.class.php on line 604
Fatal error: Call to undefined method domdocument::load() in c:\wamp\www\SITE\Document.class.php on line 605
[2006-10-25 03:00 UTC] shayne at bestflights dot com dot au
Why is this bug marked bogus. Its a absolute show stopper for sql2xml and means that it *cant* be used any more.
Should it perhaps be proposed that sql2xml then be removed from pear if it doesnt run anymore?