Re: insertData in empty element
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2002-07-04 01:58:17
|
I think this is already fixed. :o) When I run the attached files, I get this output: Before: <?xml version="1.0" encoding="utf-8"?> <users> <user username="jane" pasw="jgeslo"> <name/> </user> </users> After: <?xml version="1.0" encoding="utf-8"?> <users> <user username="jane" pasw="jgeslo"> <name>Jane</name> </user> </users> Which seems to be what you want. When sending bug reports, please could you always include the version of Php.XPath that you are running with. The CVS version of the file is in the header: * @author S.Blum / N.Swinson / D.Allen / (P.Mehl) * @link http://sourceforge.net/projects/phpxpath/ * @version 3.1 Line 147 Here>>>> * @CVS $Id: XPath.class.php,v 1.99 2002/06/20 12:20:38 bs_php Exp $ Then if we see you are running old source, we can tell you so, very quickly. The latest version from CVS can be accessed by following the CVS web pages available from the Php.XPath pages at sourceforge.net. Cheers, Nigel =========================== For the most recent version of Php.XPath, and an archive of this list visit: http://www.sourceforge.net/projects/phpxpath |