You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi. I have error of node searching in my simple example:
package;
import xmlTools.XPath;
class Main {
public static function main () {
var xml = Xml.parse("<a></a>");
var xpath = new XPath();
var result = xpath.resolve(xml, "//a");
}
}
error:
Called from ? line 1
Called from Main.hx line 10
Called from xmlTools/XPath.hx line 113
Called from xmlTools/XPath.hx line 205
Uncaught exception - Bad node type, expected Element but found 6
any ideas?
thanks
upd
I added * instread of // in my XPath and it works fine!
package;
import xmlTools.XPath;
class Main {
public static function main () {
var xml = Xml.parse("<a></a>");
var xpath = new XPath();
var result = xpath.resolve(xml, "*/a");
trace(Lambda.array(result).length);
}
}
The text was updated successfully, but these errors were encountered:
Hi. I have error of node searching in my simple example:
error:
any ideas?
thanks
upd
I added * instread of // in my XPath and it works fine!
The text was updated successfully, but these errors were encountered: