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
{{ message }}
This repository has been archived by the owner on Dec 13, 2021. It is now read-only.
Hi. Do haxe-xpath supports Haxe 3.2.1 and Haxelib 3.2.0 ?
I tried to install this from git: haxelib git xpath https://github.com/djcsdy/haxe-xpath.git
but when I try to compile simple code, like this:
build.hxml:
-main Main
-lib xpath
-neko Main.n
Main.hx:
package;
import xpath.XPath;
...
it fail with error "Type not found : xpath.XPath"
and autocompletion in my IDE show error "No classes found in xpath"
thanks
upd:
if I copy "xpath" sources into directory with Main.hx then I have other error:
Source/xpath/expression/PathStep.hx:51: characters 20-72 : Iterator<xpath.xml.XPathXml> should be _List.ListIterator<xpath.xml.XPathXml>
Source/xpath/expression/PathStep.hx:51: characters 20-72 : { next : Void -> xpath.xml.XPathXml, hasNext : Void -> Bool } should be _List.ListIterator<xpath.xml.XPathXml>
upd2:
with this changes
xpath/expression/PathStep.hx:51: var nextStepNodes = Lambda.list(nextStepResult.getNodes()).iterator();
xpath/xml/XPathHxXml.hx:522: return Lambda.list({ iterator: function () return { hasNext: hasNext, next: next } }).iterator();
my program was already compiled, but it can't find easy xpath expression:
package;
import xpath.XPath;
import xpath.xml.XPathHxXml;
class Main {
public static function main () {
var xml = Xml.parse("<a><b><c>asdasd</c></b></a>");
var xpathXml = XPathHxXml.wrapNode(xml);
var xpExpr = new XPath("/a/b/c");
var result = xpExpr.selectNodes(xpathXml);
trace(Lambda.list(result).length);
}
}
as result I have:
Main.hx:18: 0
upd3:
code from "upd2" work's fine now. just needed some changes in xpath lib:
in xpath/expression/PathStep.hx change line 51 to: nextStepNodes = Lambda.list(nextStepResult.getNodes()).iterator();
in xpath/xml/XPathHxXml.hx change line 522 to: return Lambda.list({ iterator: function () return { hasNext: hasNext, next: next } }).iterator();
The text was updated successfully, but these errors were encountered:
Hi. Do haxe-xpath supports Haxe 3.2.1 and Haxelib 3.2.0 ?
I tried to install this from git:
haxelib git xpath https://github.com/djcsdy/haxe-xpath.git
but when I try to compile simple code, like this:
build.hxml:
Main.hx:
it fail with error "
Type not found : xpath.XPath
"and autocompletion in my IDE show error "
No classes found in xpath
"thanks
upd:
if I copy "xpath" sources into directory with Main.hx then I have other error:
upd2:
with this changes
my program was already compiled, but it can't find easy xpath expression:
as result I have:
Main.hx:18: 0
upd3:
code from "upd2" work's fine now. just needed some changes in xpath lib:
in
xpath/expression/PathStep.hx
change line51
to:nextStepNodes = Lambda.list(nextStepResult.getNodes()).iterator();
in
xpath/xml/XPathHxXml.hx
change line522
to:return Lambda.list({ iterator: function () return { hasNext: hasNext, next: next } }).iterator();
The text was updated successfully, but these errors were encountered: