note 58097 rejected from function.main by jome

From: Date: Mon, 24 Oct 2005 09:42:41 +0000
Subject: note 58097 rejected from function.main by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97506@lists.php.net to get a copy of this message
Note Submitter: arplynn at gmail dot com ---- Another reference with SimpleXML in 5.0.5: Not knowing the parameters for __construct in SimpleXMLElement, I passed the name of the root node. $xml = new SimpleXMLElement("aiml"); ERROR 2: Entity: line 1: parser error : Start tag expected, '<' not found -> /usr/bin/phpi(62) : eval()'d code:1 ERROR 2: aiml -> /usr/bin/phpi(62) : eval()'d code:1 ERROR 2: ^ -> /usr/bin/phpi(62) : eval()'d code:1 <h3><font color=ff0000> Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /usr/bin/phpi(62) : eval()'d code:1 Stack trace: #0 /usr/bin/phpi(62) : eval()'d code(1): SimpleXMLElement->__construct('aiml') #1 /usr/bin/phpi(62): eval() #2 {main} thrown in /usr/bin/phpi(62) : eval()'d code on line 1 </font></h3>

« previous php.notes (#97506) next »