Re: Re[2]: Am I a doofus?
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2002-08-06 14:25:59
|
Odd, I just tested again and it works. I attach my .php file that I'm using to test, and the output it produces: What happens if you run Junk.php? Looking at the errors you are getting returned, something odd is up, because it is calling importFromString() BEFORE it has reached the appendChild() call. :o/ Nigel =========================== For the most recent version of Php.XPath, and an archive of this list visit: http://www.sourceforge.net/projects/phpxpath ----- Original Message ----- From: "Daniel Lucazeau" <inf...@aj...> To: <php...@li...> Sent: Tuesday, August 06, 2002 2:57 PM Subject: Re[2]: Am I a doofus? Bonjour Nigel, Le mardi 6 août 2002 à 02:19:52, vous écriviez : NS> $myroot = $myxpath->appendChild("","<superroot/>"); NS> However I just tried this and it didn't work, because the super root hadn't NS> been setup, so this is a bug for which I thank you kindly for reporting :o) NS> I've just implemented a change so that you can do this now. You'll find it NS> in CVS if you can't wait for the next release, or you would like to do some NS> testing :o) I need the same feature so I try the CVS version 1.111, but without success. I try : $xml = new XPath(); $rootPath = $xml->appendChild( "", "<xml/>"); And I get : XPath error in XPath.class.php:1586 In importFromString(): XML error in given string on line 1 column 0. Reason:syntax error XPath error in XPath.class.php:5155 XPath error in XPath.class.php:1586. Message: In importFromString(): XML error in given string on line 1 column 0. Reason:syntax error -- Cordialement, Daniel mailto:inf...@aj... ---------- Support-Assistance PHP/MySql de «Internet Pour Tous» http://www.i-p-t.com.fr/ :::XML/XSLT - Sablotron::: -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Phpxpath-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpxpath-users |