AW: Call to undefined function: importFromString()
Brought to you by:
bs_php,
nigelswinson
From: J. C. <jan...@im...> - 2004-07-22 07:44:28
|
Dear Victor use $xpathEn->importFromString($nick,$xpath) only with "->" you can access the function because it is a pointer and not a normal member function can anyone help me with the move XML element up and down problem? Thanks! Cheers Jan -----Ursprüngliche Nachricht----- Von: php...@li... [mailto:php...@li...]Im Auftrag von Victor Rodríguez Gesendet: Mittwoch, 21. Juli 2004 17:00 An: php...@li... Betreff: Call to undefined function: importFromString() Hi, I'm trying to call the function XPathEngine.importFromString() and the result is like this: Fatal error: Call to undefined function: importfromstring() in d:\desenvol\055_op_hotel_continental\proves\testre.php on line 11 I don't understand why because the XPathEngine Object is created correctly... Shuold I did something wrong?? <?php include 'PHPXPath/XPath.class.php'; $nick = "<xmlDoc><accio>'loginPSW'</accio><user>SYSTEM</user><text><nick>manolo</nic k><psw>manolo</psw></text></xmlDoc>"; $xmlOpt = array(XML_OPTION_CASE_FOLDING => FALSE, XML_OPTION_SKIP_WHITE => TRUE); $xpathEn = new XPathEngine($xmlOpt); echo "xpathEn: " . $xpathEn . "<br>"; $b = $xpathEn.importFromString($nick, $xpath); echo "importFromString: " . $b . "<br>"; ?> Thank you very much, and sorry for my english... Best wishes... Víctor Rodríguez Ortega. |