match( "/* | /text()" ) causes error from _InternalEvaluate()
Brought to you by:
bs_php,
nigelswinson
From: <gk...@pr...> - 2002-07-05 08:07:25
|
* @version 3.1 * @CVS $Id: XPath.class.php,v 1.99 2002/06/20 12:20:38 bs_php Exp $ */ No matter what your input xml looks like, it seems you cannot use '|' operator with a combination of textParts and childNodes: Xpath->match( "/* | /text()" ) results in this message: XPath error in -:-</b> Results from _InternalEvaluate() are corrupt. Do you need to call reindexNodeTree()? Given input: <a>cdata<b>cdata</b></a> The following matches work fine: Xpath->match( "/* | /a/*" ) Xpath->match( "/text()" ) Xpath->match( "/a/text()" ) The following fail: Xpath->match( "/text() | /a/text()" ) Xpath->match( "//text()" ) Are these bugs or is my xpath invalid? - Greg |