PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » XML » XML_sql2xml » Bug #6975

Problem with DOM and DOM_XML (php_domxml.php extension in wamp installation)

Details

Request #6975Problem with DOM and DOM_XML (php_domxml.php extension in wamp installation)
Submitted2006-03-01 16:56 UTC
Fromu_colmenar at altran-tech dot net
StatusBogus
PackageXML_sql2xml
PHP Version5.1.1
OSWindowsXP
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?